美文网首页
XCode编译错误集合

XCode编译错误集合

作者: nick5683 | 来源:发表于2022-07-07 10:05 被阅读0次

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

报错: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上运行正常的app在iPad上旋转屏幕时,页面适配没做好,但手头上又没有iPad,只能用模拟器,但是 CocoaAsyncSocket.framework 是真机下使用的,没办法下载 CocoaAsyncSocket源码,编译模拟器环境下framework使用。

结果又遇到下面问题:
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
添加模拟器架构即可。

image.png

相关文章

网友评论

      本文标题:XCode编译错误集合

      本文链接:https://www.haomeiwen.com/subject/jenubrtx.html