Problem with Xcode Templates on 2.0.3

Hi,

I tried to update my cocos2D-X installation to the latest stable release (2.0.2 was installed before) now I don’t seem to be able to create a new Xcode Project.

I tried to reinstall it using ‘./install-templates-xcode.sh uf’ and spotted the following errors:

removing old libraries: /Users/unlink/Library/Developer/Xcode/Templates/cocos2d-x/
...creating destination directory: /Users/unlink/Library/Developer/Xcode/Templates/cocos2d-x/
...copying cocos2d files
rsync: link_stat "/Users/unlink/cocos2dx" failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]

basically this happens for every file the script tries to install.

I hope you can help me

How about open /Users/unlink/Library/Developer/Xcode/Templates/ and remove cocos2d-x folder manually by yourself? Then re-run the installation script. Wish you good luck.

Thanks for the answer but the problem is still there.
The installation script recreates the folders but there are still no templates showing up in Xcode.

i have this problem too .
i install install-templates-xcode.sh but no have any templates in Xcode.i install cocos2d with out any problem but cocos2d-x dont add template:(
mac 10.8 and xcode 4.5

wen i went to install cocos2d-x template get this message

\f0\fs24 \cf0 /Users/mahmood1/Desktop/cocos2d-2.0-x-2.0.2/install-templates-xcode.sh -u\
cocos2d-x template installer\
\
\
\
Installing Xcode 4 cocos2d-x iOS template\
----------------------------------------------------\
\
...creating destination directory: /Users/mahmood1/Library/Developer/Xcode/Templates/cocos2d-x/\
...copying cocos2d files\
rsync: link_stat "/Users/mahmood1/cocos2dx" failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
rsync: link_stat "/Users/mahmood1/licenses/LICENSE_cocos2d-x.txt" failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
...copying CocosDenshion files\
rsync: link_stat "/Users/mahmood1/CocosDenshion" failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
...copying extension files\
rsync: link_stat "/Users/mahmood1/extensions" failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
...copying template files\
rsync: link_stat "/Users/mahmood1/template/xcode4/." failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
done!\
\
\
\
Installing Xcode 4 Chipmunk iOS template\
----------------------------------------------------\
\
...copying Chipmunk files\
rsync: link_stat "/Users/mahmood1/external/chipmunk" failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
rsync: link_stat "/Users/mahmood1/licenses/LICENSE_chipmunk.txt" failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
done!\
\
\
\
Installing Xcode 4 Box2d iOS template\
----------------------------------------------------\
\
...copying Box2D files\
rsync: link_stat "/Users/mahmood1/external/Box2D" failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
rsync: link_stat "/Users/mahmood1/licenses/LICENSE_box2d.txt" failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
done!\
\
\
\
Installing Xcode 4 lua iOS template\
----------------------------------------------------\
\
...copying lua files\
rsync: link_stat "/Users/mahmood1/scripting/lua" failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
rsync: link_stat "/Users/mahmood1/licenses/LICENSE_lua.txt" failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
rsync: link_stat "/Users/mahmood1/licenses/LICENSE_tolua++.txt" failed: No such file or directory (2)\
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]\
done!\
done!}

i have mac 10.8 and xcode 4.5 and i install cocos2d-iphon with out any problem :frowning:

i have mac 10.8 and xcode 4.5 and i install cocos2d-iphon with out any problem

Cocos2d-iphone worked fine for me as well (Xcode 4.5 and OS X 10.8.2), but I still couldn’t figure out what went wrong with the installation script.

i change install-templates-xcode.sh and now it work for me…you can test it too.

in Terminal.app: cd “your path” ENTER
then ./install-templates.sh uf ENTER
That’s all. Then everything is fine :slight_smile: