Do it:
In Finder, go to your hard drive,
Go to Developer => Library and drag the cocos2d folder to this folder,
Then open a terminal, type cd and drag the cocos2d folder into the terminal window.
Now do sudo./install-templates.
That should work.
After rebooting xcode.
Hope this helps.
tallen11
source share