用Xcode7禁用项目和cocoapods依赖项的bitcode

用Xcode7禁用项目和cocoapods依赖项的bitcode

本文介绍了使用Xcode7禁用项目和cocoapods依赖项的bitcode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为项目和cocoapod依赖关系禁用bitcode?这是我在尝试使用Xcode 7运行项目时遇到的错误。

How can you disable bitcode for your project and cocoapod dependencies? Here is the error I get when trying to run my project with Xcode 7.

编辑:最初只为其中一个目标禁用它。一旦我禁用所有这些并且我能够成功构建。

Originally only disabled it for one of the targets. Once I disabled all of them and I was able to build successfully.

推荐答案

以不同的方式设置此设置每次执行 pod安装时都会被覆盖,你可以将它添加到你的 Podfile

To set this setting in a way that doesn't get overridden each time you do a pod install you can add this to your Podfile

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

这篇关于使用Xcode7禁用项目和cocoapods依赖项的bitcode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 15:36