linker command failed with exit code 1 (use -v to see invocation)

错误详情:

ld: bitcode bundle could not be generated because '/Users/biyu6/Documents/CodingCode/OnlineEdu/OnlineEdu/IJKMediaFramework.framework/IJKMediaFramework(IJKAVMoviePlayerController.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file '/Users/biyu6/Documents/CodingCode/OnlineEdu/OnlineEdu/IJKMediaFramework.framework/IJKMediaFramework' for architecture armv7

错误解决:

关闭bitcode
”Build Settings”->”Enable Bitcode” 改为 NO


修改.png

PS:iOS中bitcode是可选项,watchOS中bitcode是必选项,MacOS不支持bitcode。

错误的原因:

一般这个问题出在引用第三方库上,有些第三方库不支持bitcode,在Archives打包时就会报这个错。

当提交app到AppStore上时,Xcode会将程序编译为一个中间表现形式(bitcode)。然后AppStore会再将这个botcode编译为可执行的64位或32位程序。 bitcode允许苹果在后期重新优化程序的二进制文件,而不需要重新提交一个新的版本到AppStore上。

你可能感兴趣的:(linker command failed with exit code 1 (use -v to see invocation))