仅为CocoaPods构建活动架构需要在Xcode中为NO

在我们使用cocoapods的旧项目中,自Xcode 6以来存在一个奇怪的问题:当编译iphone(而不是模拟器)时,在构建时找不到一些随机的cocoapod(例如Flurry)。 在Xcode 5中一切都很好。 这与Cocoapods目标中的’Build active architecture only = YES’时相同。

当’仅构建活动架构=否’时,一切都按预期工作。

为什么是这样? 我已经重建了几次cocoapods,但它保持不变。

附加到您的Podfile:

post_install do |installer_representation| installer_representation.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' end end end