XCode編譯錯(cuò)誤集合

一、Building for iOS, but the linked and embedded framework '.framework' was built for iOS + iOS Simu...

報(bào)錯(cuò):Building for iOS, but the linked and embedded framework '.framework' was built for iOS + iOS Simulator.

將Validate Workspace改為Yes,重新編譯

image.png

二、The linked and embedded framework 'xxx.framework' is missing on

開端:
在iPhone上運(yùn)行正常的app在iPad上旋轉(zhuǎn)屏幕時(shí),頁面適配沒做好,但手頭上又沒有iPad,只能用模擬器,但是 CocoaAsyncSocket.framework 是真機(jī)下使用的,沒辦法下載 CocoaAsyncSocket源碼,編譯模擬器環(huán)境下framework使用。

結(jié)果又遇到下面問題:
The linked and embedded framework "CocoaAsyncSocket.framework" is missing one or more architectures required by this target arm64.

解決方案:
Bulid Setting 中的 User-DefinedVALID_ARCHS 添加 x86_64
添加模擬器架構(gòu)即可。

image.png

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

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

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