OGeek|极客世界-中国程序员成长平台

标题: ios - ParseFacebookUtilsV4 启用位码错误 xcode 7 beta 6 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 16:12
标题: ios - ParseFacebookUtilsV4 启用位码错误 xcode 7 beta 6

首先,我知道与此类似的问题,但没有一个涉及我的问题。我正在使用 Xcode 7 beta 6 和 cocoapods。 这是我的 Podfile:

platform :ios, '8.0'
use_frameworks!

target 'Alfred' do
pod 'aymentKit', :git => 'https://github.com/stripe/PaymentKit.git'
pod 'SDWebImage', '~>3.7'
pod 'arse'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'arseFacebookUtilsV4'
pod 'Fabric'
pod 'Crashlytics'
end

在为模拟器编译时,一切正常,但在为真实设备(iOS 9 beta 的 iPhone 6)编译时,出现以下错误代码:

'/Users/username/projectpath/Pods/ParseFacebookUtilsV4/libParseFacebookUtilsV4Lib.a(PFFacebookUtils.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 for architecture arm64

我已经启用了 ENABLE_BITCODE 标志,但它仍然显示相同的错误。我也尝试再次清理和重建项目。



Best Answer-推荐答案


您实际上需要为那些还不支持位码的库禁用位码。

错误是请链接已为位码编译的静态库。由于您可能不拥有 cocoapods 库,因此您只需在项目中禁用对这些库的位码支持即可。

如果您想要快速而肮脏,只需为您的目标禁用位码(如下所示)。但是您可以更细致地挑选并选择禁用给您带来麻烦的库的位码(更负责任的选择)。

enter image description here

关于ios - ParseFacebookUtilsV4 启用位码错误 xcode 7 beta 6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32365666/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4