How to add folder reference in XCode 4 Project Template

有些话、适合烂在心里 提交于 2019-12-01 07:28:11

问题


i have some problems about adding folder reference in xcode 4 project template, i just can add Groups and Sub Groups to project. does anyone successed doing this? please share here..

here's the code that i use to add Group:

<key>Definitions</key>
<dict>
    <key>main.h</key>
    <dict>
        <key>Path</key>
        <string>main.h</string>
        <key>Group</key>
            <string>css</string>
    </dict>
</dict>

<key>Nodes</key>
<array>
    <string>main.h</string>
</array>

that code just generate Group not a Folder Reference...please help me

*sorry my english a bit strange, haha


回答1:


If you want your file to be added to a folder, then you should reference it with its full desired path everywhere you define it (namely in the definitions and in the nodes section)

<key>Definitions</key>
  <dict> 
    <key>css/main.h</key>
     <dict>
       <key>Path</key>
       <string>main.h</string>
       <key>Group</key>
       <string>css</string>
     </dict>

<key>Nodes</key>
 <array>
  <string>css/main.h</string>
 </array>


来源:https://stackoverflow.com/questions/5575294/how-to-add-folder-reference-in-xcode-4-project-template

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