iOS打包出错:clang: error: linker command failed due to signal

昨晚项目打测试包在编译的时候遇到这个错误

clang: error: unable to execute command: Segmentation fault: 11

clang: error: linker command failed due to signal (use -v to see invocation)

在网上找了各种方法试了试都不行。。。。然后不知道在那个疙瘩里找到的方法成功解决。。。。

在Xcode 7中,我们新建一个iOS程序时,bitcode选项默认是设置为YES的。我们可以在”Build Settings”->”Enable Bitcode”选项中看到这个设置。

所以,如果我们的工程需要支持bitcode,则必要要求所有引入的第三方库都支持bitcode。

解决方法

Build Settings中,把Enable Bitcode设置为NO

你可能感兴趣的:(iOS打包出错:clang: error: linker command failed due to signal)