FIRApp Linker Error [“_OBJC_CLASS_$_FIRApp”]

浪尽此生 提交于 2019-12-22 04:26:31

问题


I have scoured SO and Google but can't find an answer that works. I have used the new Firebase Cocoapod on multiple projects but now, when adding it to a different project I am getting the following error.

I am using Xcode 7.3.1 with cocoapods 1.0.1.

Here is my podfile:

Any help is greatly appreciated!


回答1:


Go to Build Settings > Other Linker Flags > on a new line $(inherited).

Do a Cmd+Ctrl+K for a clean, and then build.




回答2:


Uncomment this line to define a global platform for your project

platform :ios, '9.0'

target 'AppName' do # Comment this line if you're not using Swift and don't want to use dynamic frameworks inhibit_all_warnings! use_frameworks!

Pods for FCM

pod 'Firebase' pod 'Firebase/Core' pod 'Firebase/Messaging'

end



来源:https://stackoverflow.com/questions/37604304/firapp-linker-error-objc-class-firapp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!