xcode 如何卸载 cocos2d 模板?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10287029/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 00:03:48  来源:igfitidea点击:

How to uninstall cocos2d templates?

iosxcodeidecocos2d-iphoneterminal

提问by Anatoliy Gatt

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?

情况:
- 就在几个小时前,我安装了 cocos2d 2.x
- 但就在它之前我删除了 cocos2d 1.0.1 的模板文件
- 现在我看不到 cocos2d 2.x 的模板文件
- 在 Xcode 中,两个模板都是可见的,我可以使用它们。

问:如果我已经删除了 cocos2d 1.0.1 模板的文件,如何删除该模板?为什么我看不到cocos2d 2.x 的文件?

Thanks in advance!

提前致谢!

回答by Anatoliy Gatt

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

这对那些尝试重新安装或删除 Cocos2D 模板的人会很有帮助!

  • 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
  • 如果您从以下路径中删除所有文件: ~/Library/Application Support/Developer/
  • 如果您尝试使用 Terminal.app 中的命令删除它: cd "your path" ./install-templates.sh -u -f
  • 如果您尝试重新安装 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 XcodeFolder
  • Open TemplatesFolder
  • Delete Cocos2DFolder
  • Open File TemplatesFolder
  • Delete Cocos2DFolder
  • 打开查找器
  • Shift-Command-G
  • 输入路径:/Users/ Your_Username/Library/Developer
  • 围棋
  • 打开Xcode文件夹
  • 打开模板文件夹
  • 删除Cocos2D文件夹
  • 打开文件模板文件夹
  • 删除Cocos2D文件夹

That's all!

就这样!

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

PS同样,您可以在 Xcode 中修改模板和选项卡的名称。只需重命名模板的文件夹即可。

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

PPS顺便说一下,你现在可以升级到 Cocos2D 2.x。从这里下载:Cocos2D

回答by Sergey Pekar

For Xcode 5.1 and later

对于 Xcode 5.1 及更高版本

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

Command+Alt+G(转到)/Users//Library/Developer/Xcode/Templates

Then delete 3d party templates folder.

然后删除 3d 派对模板文件夹。

回答by wayway

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

尝试查看此链接:http: //www.cocos2d-iphone.org/forum/topic/4082如果所有其他方法都失败,您可能需要手动删除文件。希望能帮助到你!:)