将 iOS 9 应用与适用于 iOS 的 Google 移动广告 SDK v7.4.1(作为框架)链接时,我收到以下错误消息:
GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADGestureIdUtil.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.
什么是克服看起来像 Catch 22 的正确方法?
最佳答案
我同时在 Apple 的 documentation 中找到了这个:
For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.
所以暂时关闭iOS应用目标的bitcode应该是一个可行的方法。
关于admob - 使用适用于 iOS 的 Google 移动广告 SDK v7.4.1 (GoogleMobileAdsSdkiOS-7.4.1) 和 bitcode 进行应用瘦身,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32073298/