Xcode3 到 Xcode4 代码模板
有人可以告诉我如何将代码模板从 xcode3 转换为 xcode4 吗? 我正在阅读文章 http://iphonedevelopment.blogspot.com/2009/04/opengl-es-from-ground-up-part-2-look-at.html 作者提供了他的 OpenGLES 代码模板,但我不能让它在新的 xcode4 中工作,似乎它有不同的格式。有什么建议吗?
提前致谢 :)
can someone tell me how to convert code templates from xcode3 to xcode4?
I am reading article at http://iphonedevelopment.blogspot.com/2009/04/opengl-es-from-ground-up-part-2-look-at.html and author offers his OpenGLES code template, but I can't get it working in new xcode4, seems it have different format. Any suggestions?
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了同样的问题,这里列出了使 xcode 3 模板与 xcode 4 兼容所需进行的更改:
首先,您必须将模板移动到新目录:
/YourUserDirectory/Library/Developer/Xcode/Templates /File Templates
(以前是 /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/File Templates)
然后您需要:
___FILEBASENAMEASIDENTIFIER___
___FILENAME___
、___PROJECTNAME___
等___FILEBASENAME___.h
"希望这会有所帮助,
文森特
I had the same problem, here is a list of the changes you need to do to make your xcode 3 templates works with xcode 4 :
First you have to move your templates to a new directory :
/YourUserDirectory/Library/Developer/Xcode/Templates/File Templates
(previously it was /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/File Templates)
Then you need to :
___FILEBASENAME___
.h (the class.m can stay unchanged)___FILEBASENAMEASIDENTIFIER___
___FILENAME___
,___PROJECTNAME___
, etc___FILEBASENAME___.h
"Hope this helps,
Vincent
在 XCode 4 最终确定之前,这可能没有多大意义。但是,您可以并行安装 XCode 3 和 4,并且 XCode 项目格式在它们之间兼容。因此,我只需在 XCode 3 中安装模板,创建新项目,然后在 XCode 4 中打开结果。
Until XCode 4 is finalised, there's probably not much point in this. However, you can side by side install XCode 3 and 4 and the XCode project format is compatible between them. Hence, I'd just install the template in XCode 3, create your new project(s), then open the results in XCode 4.