12

Situation:
- Just few hours ago I intalled cocos2d 2.x
- But just before it I delete template files of cocos2d 1.0.1
- Now I can't see template files of cocos2d 2.x
- In Xcode both of the templates are visible, and I can use them.

Question: How I can delete cocos2d 1.0.1 templates, if I already delete files of this templates? Why I can't see files of cocos2d 2.x?

Thanks in advance!

Anatoliy Gatt
  • 2,501
  • 3
  • 26
  • 42

3 Answers3

37

This will be helpful for those who try to reinstall or delete Cocos2D Templates!

  • If you delete all the files from thi path: ~/Library/Application Support/Developer/
  • If you tried to delete it with command in Terminal.app: cd "your path" ./install-templates.sh -u -f
  • If you tried to reinstall Xcode.app

Nothing helps?

I found solution of this problem!

What you need to do is:

  • Open the Finder
  • Press Shift-Command-G
  • Enter the Path: /Users/Your_Username/Library/Developer
  • Press Go
  • Open Xcode Folder
  • Open Templates Folder
  • Delete Cocos2D Folder
  • Open File Templates Folder
  • Delete Cocos2D Folder

That's all!

P.S As well you can modify the names of templates and tabs in Xcode. Simply just by renaming folders of the templates.

P.P.S By the way right now you can upgrade to Cocos2D 2.x. Download it from here: Cocos2D

Community
  • 1
  • 1
Anatoliy Gatt
  • 2,501
  • 3
  • 26
  • 42
  • What if I deleted cocos2d 2.x, and installed cocos2d 3.x and now i want to reinstall cocos2d 2.x but somehow cannot get it through command line because cocos2d doesnt provide it anymore? – Mohsin Khubaib Ahmed Aug 16 '14 at 14:39
1

For Xcode 5.1 and later

Command+Alt+G (go to) /Users//Library/Developer/Xcode/Templates

Then delete 3d party templates folder.

Sergey Pekar
  • 8,555
  • 7
  • 47
  • 54
0

Try looking at this link: http://www.cocos2d-iphone.org/forum/topic/4082 You might need to manually remove the files if all else fails. Hope it helps! :)

waylonion
  • 6,866
  • 8
  • 51
  • 92
  • I don't have any files in the folder. So I don't have what to remove. – Anatoliy Gatt Apr 23 '12 at 19:47
  • Try uninstalling all the templates for both the new versions and the old versions. Then, re-install cocos2d 2x. That should work. ^_^ – waylonion Apr 23 '12 at 19:52
  • How I can uninstall them? I don't have any files for both of them. Can you show me the way? – Anatoliy Gatt Apr 23 '12 at 19:59
  • You can access the templates here: ~/Library/Developer/Xcode/Templates Delete the cocos2d files and that should remove the templates. You can also use this: ./install-templates.sh -f to force uninstall and re-install a newer version! Here's a link:http://www.raywenderlich.com/forums/viewtopic.php?f=5&t=1441 Hope that helped ;) – waylonion Apr 23 '12 at 20:07
  • I told you I didn't have any files in this folder! I already used Terminal. But It didn't help. Is there any way to completely re-install Xcode. Because if you will just deleted and after installed again, they will appear any way. – Anatoliy Gatt Apr 23 '12 at 20:15
  • Delete "Applications/Install Xcode" you can then re-install from app store. Or open terminal window cd /Applications sudo rm -rf Install\ Xcode.app After that you should be able to reinstall – waylonion Apr 23 '12 at 20:21
  • Now I will try to re-install I delete Xcode it self + all stuff of Developer at Library. So I think I delete everything that comes with Xcode. Now I downloading it from AppStore. – Anatoliy Gatt Apr 24 '12 at 09:54
  • 1
    I found the way of deleting and re-installing! Unfortunatelly re-installing of Xcode didn't give any result. – Anatoliy Gatt Apr 24 '12 at 11:48