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的模拟器运行即可