一、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-Defined下 VALID_ARCHS 添加 x86_64
添加模擬器架構(gòu)即可。

image.png