XCode Templates: moving AppDelegate

↘锁芯ラ 提交于 2019-12-24 00:10:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!