Xcode报Invalid bitcode signature错误的解决方案

来源:互联网 发布:深圳软件开发外包 编辑:程序博客网 时间:2024/06/06 03:43

最近由于需要做iPhone X的适配工作,不得以升级了Xcode9和macOS High Sierra。升级后使用Xcode9编译原来的项目代码就出现了问题,会报一个Invalid bitcode signature的错误,经过多方查找问题,发现是pods的配置导致的,下面是解决方案

1、修改工程中pods的设置如下,可以参考原来Xcode8的工程配置

2、替换脚本

diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/nullif [ $? != 0 ] ; then# print error to STDERRecho "error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation." >&2exit 1fi

3、然后清工程重新编译即可

阅读全文
0 0