[英]Firebase, Fabric, & Crashlytics with -ObjC linker flag without Cocoapods iOS
Trying to add Firebase Messaging
to my iOS app that already has Fabric/Crashlytics
and I am trying to add it without Cocoapods
. 试图将Firebase Messaging
添加到我已经拥有Fabric/Crashlytics
iOS应用程序中,我试图在没有Cocoapods
情况下添加它。
I followed the readme instructions in the Firebase SDK zip file and once I add the -ObjC
linker flag to the target, it causes a duplicate symbol compile error for Fabric/Crashlytics 我按照Firebase SDK zip文件中的自述文件说明操作,一旦我将-ObjC
链接器标志-ObjC
到目标,就会导致Fabric / Crashlytics出现重复的符号编译错误
I then found out to use -force_load
and pointed it to the Firebase.h
file. 然后我发现使用-force_load
并将其指向Firebase.h
文件。 This allowed me to compile, but when trying to FIRAPP.configure()
it came up with this error: 这允许我编译,但是当尝试FIRAPP.configure()
它出现了这个错误:
2016-11-30 14:33:31.862 Parents[243] <Debug> [Firebase/Core][I-COR000001]
Configuring the default app.
2016-11-30 14:33:32.029 Parents[243:24612] +[NSData gtm_dataByGzippingData:error:]:
unrecognized selector sent to class 0x3159a53c
Has anyone ever experienced this before? 以前有没有人经历过这个? Please note I am not using Cocoapods for all three. 请注意我没有使用三个Cocoapods。
I actually had the same exact problem. 我实际上有同样的问题。 My awesome coworker suggested to update Fabric and Crashlytics to the latest and it worked. 我真棒的同事建议将Fabric和Crashlytics更新到最新版并且有效。 Try that! 试试吧!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.