问题
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.
Does enybody know how to move the AppDelegate to a subfolder? Which template do i have to modify?
Thanks in advance!
Chris
回答1:
I just managed to move all files as intended.
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>`
In this case, you would have to edit the templates applicationBase
and osxBase
and, if aplicable, all the ancestors listed in these templates.
来源:https://stackoverflow.com/questions/19037462/xcode-templates-moving-appdelegate