XCode 模板:移动 AppDelegate [英] XCode Templates: moving AppDelegate
问题描述
我目前正在研究一些 XCode 模板,以使我的工作更轻松.我复制了原始模板并根据我的需要对其进行了修改.到目前为止,一切正常.但是,我找不到将生成的 AppDelegate 文件移动到子文件夹的方法,而不会以它们的两个副本结束.
I am currently working on some XCode templates to make my work easier. I copied the original templates and modified them to my needs. Until now, everything worked just fine. However, i can't find a way to move the generated AppDelegate files to a subfolder without ending up with two copies of them.
有人知道如何将 AppDelegate 移动到子文件夹吗?我需要修改哪个模板?
Does enybody know how to move the AppDelegate to a subfolder? Which template do i have to modify?
提前致谢!
克里斯
推荐答案
我刚刚按预期移动了所有文件.
I just managed to move all files as intended.
确保您编辑层次结构中的所有文件以确保 Definitions
部分中的每个键以及 Nodes
部分中的每个项目都已更改,这一点很重要以反映相同的文件夹结构.
It is important to make sure you edit all files up the hierarchy to make sure every key in the Definitions
section as well as every item in the Nodes
section is changed to reflect the same folder structure.
更新:
大多数模板都包含这样的键值对:
UPDATE:
most templates contain a key-value pair like this:
<key>Ancestors</key>
<array>
<string>com.apple.dt.unit.applicationBase</string>
<string>com.apple.dt.unit.osxBase</string>
</array>`
在这种情况下,您必须编辑模板 applicationBase
和 osxBase
以及这些模板中列出的所有祖先(如果适用).
In this case, you would have to edit the templates applicationBase
and osxBase
and, if aplicable, all the ancestors listed in these templates.
这篇关于XCode 模板:移动 AppDelegate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!