我一直尝试更新到 Cocos2D 版本 2,但我总是在终端中看到以下代码行。
Installing Xcode 4 Box2d iOS template
-------------------------------------------------
mkdir: /Users/jubilate/Library/Developer/Xcode/Templates/cocos2d v2.x: Permission denied ...copying Box2d files
rsync: mkdir "/Users/jubilate/Library/Developer/Xcode/Templates/cocos2d v2.x/lib_box2d.xctemplate/libs" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at /SourceCache/rsync/rsync-42/rsync/main.c(544) [receiver=2.6.9]
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
rsync: mkdir "/Users/jubilate/Library/Developer/Xcode/Templates/cocos2d v2.x/lib_box2d.xctemplate/libs" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at /SourceCache/rsync/rsync-42/rsync/main.c(544) [receiver=2.6.9]
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
done!
Installing Xcode 4 CCNode file templates...
----------------------------------------------------
...creating destination directory: /Users/jubilate/Library/Developer/Xcode/Templates/File Templates/cocos2d v2.x/
mkdir: /Users/jubilate/Library/Developer/Xcode/Templates/File Templates/cocos2d v2.x: Permission denied
mv: rename /Users/jubilate/Library/Developer/Xcode/Templates/cocos2d v2.x//CCNode class.xctemplate to /Users/jubilate/Library/Developer/Xcode/Templates/File Templates/cocos2d v2.x/: No such file or directory
done!
我使用命令安装
./install-templates.sh -u -f
并且还删除了以下以“cocos2d”(以前的版本)开头的文件夹:
~/Library/Developer/Xcode/Templates/cocos2d*
~/Library/Developer/Xcode/Templates/File Templates/cocos2d*
有人可以帮我吗?
我已经这么做好几天了。