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.
enybody知道如何将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屋!