iphone cocos2d下载和安装

假设你有一台mac mini或者mac book并安装好了Xcode4.2

那么你可以前往http://code.google.com/p/cocos2d-iphone/downloads/detail?name=cocos2d-iphone-1.0.1.tar.gz&can=2&q= 下载cocos2d ,我下载的是1.0.1

打开终端窗口

cd /Users/user/Downloads/cocos2d-iphone-1.0.1

执行./install_template.sh

可能会报错,我的mac是Lion版本的,就出错了,google了一下,后面加个-u就好了

执./install_template.sh -u

usermatoMac-mini:cocos2d-iphone-1.0.1 user$  ./install-templates.sh -u
cocos2d-iphone template installer






Installing Xcode 4 cocos2d iOS template
----------------------------------------------------


...creating destination directory: /Users/user/Library/Developer/Xcode/Templates/cocos2d/
...copying cocos2d files
...copying cocoslive files
...copying TouchJSON files
...copying CocosDenshion files
...copying CocosDenshionExtras files
...copying FontLabel files
...copying template files
done!






Installing Xcode 4 Chipmunk iOS template
----------------------------------------------------


...copying Chipmunk files
done!






Installing Xcode 4 Box2d iOS template
----------------------------------------------------


...copying Box2d files
done!






Installing Xcode 4 CCNode file templates...
----------------------------------------------------


...creating destination directory: /Users/user/Library/Developer/Xcode/Templates/File Templates/cocos2d/
done!
...creating cocos2d template directory








Installing Xcode 3 cocos2d iOS template
----------------------------------------------------


...creating destination directory: /Users/user/Library/Application Support/Developer/Shared/Xcode/Project Templates/cocos2d 1.0.1/cocos2d Application/
...copying template files
...copying cocos2d files
...copying cocos2d dependency files
...copying CocosDenshion files
...copying cocoslive files
...copying cocoslive dependency files
done!






Installing Xcode 3 cocos2d iOS + box2d template
----------------------------------------------------


...creating destination directory: /Users/user/Library/Application Support/Developer/Shared/Xcode/Project Templates/cocos2d 1.0.1/cocos2d Box2d Application/
...copying template files
...copying cocos2d files
...copying cocos2d dependency files
...copying CocosDenshion files
...copying cocoslive files
...copying cocoslive dependency files
...copying Box2D files
done!






Installing Xcode 3 cocos2d iOS + chipmunk template
----------------------------------------------------


...creating destination directory: /Users/user/Library/Application Support/Developer/Shared/Xcode/Project Templates/cocos2d 1.0.1/cocos2d Chipmunk Application/
...copying template files
...copying cocos2d files
...copying cocos2d dependency files
...copying CocosDenshion files
...copying cocoslive files
...copying cocoslive dependency files
...copying Chipmunk files
done!






Installing Xcode 3 cocos2d Mac template
----------------------------------------------------


...creating destination directory: /Users/user/Library/Application Support/Developer/Shared/Xcode/Project Templates/cocos2d 1.0.1/cocos2d Application - Mac/
...copying template files
...copying cocos2d files
...copying CocosDenshion files
done!
...copying file templates
...creating destination directory: /Users/user/Library/Application Support/Developer/Shared/Xcode/File Templates/cocos2d 1.0.1/






Installing Xcode 3 CCNode file templates...
----------------------------------------------------


done!
usermatoMac-mini:cocos2d-iphone-1.0.1 user$ 

再打开Xcode发现

iphone cocos2d下载和安装_第1张图片



你可能感兴趣的:(ios,File,xcode,application,iPhone,XCode4)