cocos creator build ios 运行模拟器报错 xxx building for iOS Simulator, but linking in object file built for iOS , a' for architecture arm64
cocos build iOS 用真机跑能跑,用模拟器就会报错
大致的报错 log
In /Users/kcone/Library/Developer/Xcode/DerivedData/Knife-eudfzjafbjwkcrdqqlzyojaxcgrt/Build/Products/Debug-iphonesimulator/libcocos2d iOS.a(ftsystem.o), building for iOS Simulator
but linking in object file built for iOS, file ‘/Users/kcone/Library/Developer/Xcode/DerivedData/Knife-eudfzjafbjwkcrdqqlzyojaxcgrt/Build/Products/Debug-iphonesimulator/libcocos2d iOS. a’ for architecture arm64
找ios文章看了看要设置架构
我的版本是 2.4.7
按下图6个步骤设置
1.双击 最顶端项目名
2.选 build setting
3.搜索 excluded
4.找到 excluded Architectures
5.debug release 添加any sdk
6.排除项加上 arm64
搞定
比真机卡亿点点