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

錯(cuò)誤詳情:

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

錯(cuò)誤解決:

關(guān)閉bitcode
”Build Settings”->”Enable Bitcode” 改為 NO


修改.png

PS:iOS中bitcode是可選項(xiàng),watchOS中bitcode是必選項(xiàng),MacOS不支持bitcode。

錯(cuò)誤的原因:

一般這個(gè)問(wèn)題出在引用第三方庫(kù)上,有些第三方庫(kù)不支持bitcode,在Archives打包時(shí)就會(huì)報(bào)這個(gè)錯(cuò)。

當(dāng)提交app到AppStore上時(shí),Xcode會(huì)將程序編譯為一個(gè)中間表現(xiàn)形式(bitcode)。然后AppStore會(huì)再將這個(gè)botcode編譯為可執(zhí)行的64位或32位程序。 bitcode允許蘋果在后期重新優(yōu)化程序的二進(jìn)制文件,而不需要重新提交一個(gè)新的版本到AppStore上。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容