Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode Templates: moving 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.

Does enybody know how to move the AppDelegate to a subfolder? Which template do i have to modify?

Thanks in advance!

Chris

like image 561
cLar Avatar asked Feb 10 '26 06:02

cLar


1 Answers

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.

like image 100
cLar Avatar answered Feb 13 '26 04:02

cLar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!