在使用Cocoapods的旧项目中,自Xcode 6起存在一个奇怪的问题:在为iPhone(不是模拟器)进行编译时,在构建时未发现一些随机的Cocoapods(例如Flurry)。在Xcode 5中,一切都很好。这与Cocoapods目标中的“仅构建 Activity 体系结构= YES”一起使用。

当“仅构建 Activity 体系结构=否”时,一切都会按预期进行。

为什么是这样?我已经几次重建了椰 shell 足纲,但保持不变。

最佳答案

附加到您的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

10-08 08:07
查看更多