unsupported Swift architecture
Showing Recent Issues
/Users/andylym/Library/Developer/Xcode/DerivedData/digitalCurrency-dzylhmgpmtrdwlbnrczzxynejvzf/Build/Products/Debug-iphonesimulator/LTScrollView/LTScrollView.framework/Headers/LTScrollView-Swift.h:668:2: Unsupported Swift architecture
出现这种情况,一般是在xcode 15+ 引入某些第三方库,在模拟器上跑的时候报错卡在
#error unsupported Swift architecture
解决办法:
使用Rosetta类型模拟器即可跑起来
在Xcode顶部菜单栏-》Product -〉Destination-》Destination Architectures —〉Show Both
然后,在模拟器中选择一个带 Rosetta 后缀的模拟器,如下图