架构armv7的未定义符号:"_ OBJC_CLASS _ $ _ FIRApp"

aar*_*eph 29 firebase firebase-realtime-database

我根据说明在我的应用中集成了Firebase并添加了[FIRApp配置]; 但是在代码中,在编译应用程序时,我收到以下错误:

架构armv7的未定义符号:"_ OBJC_CLASS _ $ _ FIRApp",引用自:AppDelegate.o中的objc-class-ref ld:未找到架构armv7的符号

sup*_*p-f 86

由于pod安装,CocoaPods是否写了任何警告?我通过将OTHER_LDFLAGS构建设置设置为$(inherited)标记来修复类似的问题.

  • 确实,这有帮助.将$(继承)添加到应用程序中的其他链接器标志设置修复了此错误.谢谢. (7认同)
  • 谢谢!将$(继承)添加到Other Linker Flags解决了这个问题. (3认同)
  • 如果您想知道`$(继承)`甚至意味着什么,请查看以下解释:http://stackoverflow.com/questions/15343122/what-is-inherited-in-xcodes-search-path-settings (2认同)