问题一:将xcode升级到7,原来的cocos2dx app在真机上运行时会报以下错:
ld: '/Users/wangwei/Library/Developer/Xcode/DerivedData/BabyLearnABC_for_iOS-fhzxqebhivysqaershimicqluaym/Build/Products/Debug-iphoneos/libcocos2d iOS.a(ftbase.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
在”Build Settings”->All->Build Options(iOS)->”Enable Bitcode”选项中关闭bitcode功能即可。
问题二:用模拟器运行之前在cocos2d-x 3.6下创建的某个程序时提示:
The operation couldn’t be completed. (FBSOpenApplicationErrorDomain
error 1.)
但不影响模拟器的运行,只是每次都有这样的提示出现。用cocos2d-x 3.8.1新建项目,然后导入之前的项目,再次在模拟器上运行,此提示消失。
本文解决Xcode升级至7后,原有Cocos2d-x项目在真机上运行时报错及模拟器提示无法完成操作的问题。通过调整项目设置禁用bitcode功能解决真机运行错误,并介绍如何更新项目版本以消除模拟器警告。

被折叠的 条评论
为什么被折叠?



