Create physical existence folder in Custom project Template of xcode

荒凉一梦 提交于 2019-12-08 10:47:31

问题


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

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