简体   繁体   English

在xcode的自定义项目模板中创建物理存在文件夹

[英]Create physical existence folder in Custom project Template of xcode

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. 我是使用XCode的新开发人员,我试图创建自定义项目模板以及所有成功方法,但是我使用.plist文件中的Groups键创建了文件夹。 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 提前致谢

In .plist file add these lines. 在.plist文件中,添加以下行。 It will create folder and group of AppDelegate class. 它将创建AppDelegate类的文件夹和组。

<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>

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 在模板.plist文件中添加此行代码,它将创建文件夹以及AppDelegate类组

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM