mac m1 编译cocos2d-x 在模拟器上运行 一些问题汇总
如果涉及到侵权 请联系本人删除
1 》〉 /Users/yzfhkms-m/Library/Developer/Xcode/DerivedData/formi-dlcfwgxcmidqefdkxnvnfwfprpfs/Build/Products/Debug-iphonesimulator/formi-mobile.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project settings to ensure that a valid executable will be built.
解决
MacBookPro M1
Xcode项目,TARGET -> Build Settings, search ‘VALID’.
设置 VALID_ARCHS 的值,如果使用模拟器编译的话,添加 x86_64,如果使用真机编译的话设置成arm64。
2
1.编译时报 Argument value 10880 is outside the valid range [0, 255] 错误
#define BT_SHUFFLE(x,y,z,w) (((w)<<6 | (z)<<4 | (y)<<2 | (x))&0XFF)
3
The application’s Info.plist does not contain CFBundleShortVersionString.
Ensure your bundle contains a CFBundleShortVersionString.
如果涉及到侵权 请联系本人删除
building for iOS Simulator, but linking in object file built for macOS, for architecture x86_64
编译的目标平台是模拟器架构 但是连接的对象是在macos上运行的库
请编译模拟器架构