cocos2d安装不见templates文件夹

不知道为什么,我用终端来运行install-templates.sh,最后提示错误信息:

…creating destination directory: /Users/apple/Library/Application Support/Developer/Shared/Xcode/Project Templates/cocos2d 0.99.5/cocos2d Application - Mac/
…copying template files
rsync: link_stat “/Users/apple/templates/cocos2d_mac/.” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-40/rsync/main.c(992)
…copying cocos2d files
rsync: link_stat “/Users/apple/cocos2d” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-40/rsync/main.c(992)
…copying CocosDenshion files
rsync: link_stat “/Users/apple/CocosDenshion” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-40/rsync/main.c(992)
done!
…copying file templates
…creating destination directory: /Users/apple/Library/Application Support/Developer/Shared/Xcode/File Templates/cocos2d 0.99.5/
大意就是说没有templates文件夹,安装失败。我不知道原因是什么,(我的计算机用户名字就是apple了)请知道问题所在的高手提示一下,我到底怎么做才能安装上cocos2d。感谢~