如何让我的自定义Xcode项目模板添加一个文件,例如README.md
,到项目组中(在项目导航器中)?
以下步骤将README.md
文件放置在根项目目录中(在文件系统中),但在以目标命名的组中。如何将其添加到项目组中?
Add
README.md
to the project template's root directory.Add the following key-value pairs to the
TemplateInfo.plist
.<key>Definitions</key> <dict> <key>../README.md</key> <dict> <key>Path</key> <string>README.md</string> <key>TargetIndices</key> <array/> </dict> </dict>
and
<key>Nodes</key> <array> <string>../README.md</string> </array>