问题
I am new developer to use XCode I trying to Create custom project template and any how I success but I create folder using Groups key in .plist file. Folder which are created after selecting my custom project template have no physical existence. I want to create folder which have physical existence please help me out from this problem. Thanks in Advance
回答1:
In .plist file add these lines. It will create folder and group of AppDelegate class.
<key>Classes/AppDelegate/AppDelegate.h</key>
<dict>
<key>Group</key>
<array>
<string>Classes</string>
<string>AppDelegate</string>
</array>
<key>Path</key>
<string>Classes/AppDelegate.h</string>
</dict>
回答2:
I have implemented it by below line of code.
<key>Classes/AppDelegate/AppDelegate.h</key>
<dict>
<key>Group</key>
<array>
<string>Classes</string>
<string>AppDelegate</string>
</array>
<key>Path</key>
<string>Classes/AppDelegate.h</string>
</dict>
Add this line of code in your template .plist file it will create folder as well as group of AppDelegate class
来源:https://stackoverflow.com/questions/20755267/create-physical-existence-folder-in-custom-project-template-of-xcode