Xcode 4 项目模板添加了额外的文件夹
当我使用 xc4 创建一个新项目时,我不希望它创建与该项目同名的文件夹。我希望将与项目模板关联的源文件复制到项目旁边的其他几个文件夹中。
在 TemplateInfo.plist 中,我可以通过 Definitions 和 Nodes 数组指定要复制的文件。在定义中,如果我将名称命名为 ../Example.cpp,那么它将将该文件复制到项目所在的目录中,而不是复制到具有项目名称的文件夹中,这正是我想要的。但是,如果我删除该空文件夹,那么 xcode 将无法再找到任何文件,因为所有文件都必须相对于自动创建的文件夹进行指定。
有谁知道如何解决这个问题?有没有办法指定项目文件应该相对于哪个文件夹?或者也许有其他方法来指定项目模板中文件的相对路径?
When I make a new project with xc4 I don't want it to create a folder with the same name as the project. I want the source files associated with a project template to get copied into several other folders that sit next to the project.
In the TemplateInfo.plist, I can specify which files to copy through the Definitions and Nodes arrays. In the Definitions, if I make the name ../Example.cpp then it will copy the file into the directory with the project rather than into the folder that has the project's name, which is what I want. But, if i delete that empty folder then xcode can no longer find any files because all files had to be specified relative to the auto-created folder.
Does anyone know how to get around this? Is there some way to specify which folder project files should be relative to? Or perhaps some other way to specify relative paths for files in a project template?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论