升级xcode15后,编译报#error unsupported Swift architecture

OC项目导入了Socket.IO-Client-Swift库,升级xcode15后运行模拟器报错如下:


In file included from <module-includes>:2:

~/Library/Developer/Xcode/DerivedData/WWChat-fxpjblicbevpoggpegngfgullsma/Build/Products/Debug-iphonesimulator/Socket.IO-Client-Swift/SocketIO.framework/Headers/SocketIO-Swift.h:802:2: error: unsupported Swift architecture

#error unsupported Swift architecture


解决方案:

1、XCode15.4 -> Product -> Destination -> Show All Run Destinations

2、XCode15.4 -> Product -> Destination -> 这时可以看到  iPhone 15 Pro (Rosetta), 选择带Rosetta的模拟器运行即可


©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容