我使用Cocos2d-x 3.2使用命令创建项目如下:
localhost:bin and$ ./ cocos.py new HelloWorldDemo -p com.and -l cpp -d ~/Documents
-bash: ./: is a directory
localhost:bin and$ python cocos.py new HelloWorldDemo -p com.and -l cpp -d ~/Documents
Running command: new
> Copy template into /Users/and/Documents/HelloWorldDemo
> Copying cocos2d-x files...
> Rename project name from 'HelloCpp' to 'HelloWorldDemo'
> Replace the project name from 'HelloCpp' to 'HelloWorldDemo'
> Replace the project package name from 'org.cocos2dx.hellocpp' to 'com.and'
但是当我打开项目并尝试在Xcode中构建它时,它会返回如下错误:
Apple Mach-O Librarian error
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1
我检查了Cocos2d-x网站上的文档,但找不到任何帮助。请帮忙。非常感谢!
此致
德韦
答案 0 :(得分:0)
我遇到同样的问题使用将所有这个框架添加到你的项目
libz.dylib
Foundation
LibObjectiveChimpmunk.a
AudioToolBox
OpenGLES
CoreText
CoreGraphics
QuartzCore
AVFoundation
UIKit
OpenAL
GLKit