Cocos2d install
sudo ./install-templates.sh
means to install for system wide. The template would appear in the system wide section.
For as user template, use -u option.
./install-templates.sh -u
This is a duplicate of :
How to install Cocos2d PROJECT templates in Xcode 4?
The solution is that you have to get the latest from github in order to get xcode 4 templates.
The solution link is here:
http://www.cocos2d-iphone.org/forum/topic/13782/page/2#post-82267
The github link is:
https://github.com/cocos2d/cocos2d-iphone.git
I just verified this works.