Why Firebase 4.6.0 (ios) gave me “Undefined symbols for architecture armv7”

百般思念 提交于 2019-12-11 21:31:34

问题


I update today firebase (ios) from 4.5.0 to 4.6.0. With 4.5.0 it's was working well however with 4.6.0 (to the last 4.11.0) when I compile I have now this error :

[DCC Error] E2597 Undefined symbols for architecture armv7: Error: "_OBJC_CLASS_$_SKPaymentQueue", referenced from: objc-class-ref in C:\Dev\Alcinoe\lib\ios\firebase\FirebaseAnalytics.framework\FirebaseAnalytics(FIRAInAppPurchaseTransactionReporter_780d0e22c66d661ab61b3e74b77b38bd.o);

Error: "_OBJC_CLASS_$_SKProductsRequest", referenced from: objc-class-ref in C:\Dev\Alcinoe\lib\ios\firebase\FirebaseAnalytics.framework\FirebaseAnalytics(FIRAProductsRequest_9354511b6e4f24cc2d512538458edb37.o); ld: symbol(s) not found for architecture armv7

I m using Delphi compiler (tokyo release 2) with ios 10.3 sdk.

this error only happen with the FirebaseAnalytics.framework (all other framework of 4.6.0 to 4.11.0 compile ok, only FirebaseAnalytics.framework make problems)

Any idea what was changed between 4.5.0 to 4.6.0 and what i can do to resolve my problem ?


回答1:


It looks like you're not linking the StoreKit framework. Add StoreKit.framework to the configuration in Delphi that corresponds with Xcode's Build Phases -> Link Binary With Libraries.

StoreKit has been a FirebaseAnalytics dependency for a long time, so I'm not sure why this is showing up now. I'm also not sure why you would update to Firebase 4.6.0 instead of the current latest 4.11.0.



来源:https://stackoverflow.com/questions/49712340/why-firebase-4-6-0-ios-gave-me-undefined-symbols-for-architecture-armv7

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