我使用cocos2dx(C++)开发的游戏,3.11cocos最新版本,Xcode编辑器。在使用终端build_native.py发生如下错误:
scsdeiMac:proj.android scs$ ./build_native.py
Please use cocos console instead.
/etc/profile: line 14: export: `2/tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/scs/opt/cocos2d-x-3.9/templates:/Applications/Cocos/frameworks:/Applications/Cocos/frameworks/cocos2d-x:/Applications/Cocos/tools/ant/bin:/Users/scs/adt-bundle-mac-x86_64-20140702/android-ndk-r9:/Users/scs/JS-ANT-SDK-NDK/sdk/tools:/Users/scs/JS-ANT-SDK-NDK/sdk/platform-tools:/Users/scs/JS-ANT-SDK-NDK/sdk:/Users/scs/opt/cocos2d-x-3.9/tools/cocos2d-console/bin:/System/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/scs/adt-bundle-mac-x86_64-20140702/apache-ant-1.9.4/bin:/Users/scs/adt-bundle-mac-x86_64-20140702/sdk’: not a valid identifier
/Users/scs/opt/cocos2d-x-3.9/tools/cocos2d-console/bin/cocos: line 3: dirname: command not found
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can’t open file ‘/Users/scs/Desktop/Beyond Hexagon/Hello3_11_android/proj.android/cocos.py’: [Errno 2] No such file or directory
Traceback (most recent call last):
File “./build_native.py”, line 43, in
build(opts.build_mode)
File “./build_native.py”, line 28, in build
raise Exception(“Build dynamic library for project [ " + app_android_root + " ] fails!”)
Exception: Build dynamic library for project [ /Users/scs/Desktop/Beyond Hexagon/Hello3_11_android/proj.android/…/ ] fails!
scsdeiMac:proj.android scs$
请问这是怎么回事?如何解决?谢谢大家,本人比较小白,不是很懂