Xcode,向项目添加文件夹,保留目录结构并自动更新
我想将文件夹包含在 Xcode 项目中,但我希望它保留其结构(子文件夹等)。当我将其拖到 Xcode 中的资源中时,它会将该文件夹扩展为 Xcode 项目中的一个组。
我还希望它保留其结构,以便我可以添加和删除文件,而无需不断地将修改后的文件夹重新添加到项目中。
I have folder that I would like to include in my Xcode project, but I would like it to retain it's structure (subfolder, etc). When I drag it into the resources in Xcode it expands that folder into a group in the Xcode project.
I would also like it to retain it's structure so I can add and remove files without re-adding the modified folder to the project constantly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
添加包时,选择“为任何添加的文件夹创建文件夹引用”选项。 Xcode 将创建对该目录的引用,并在每次重建包时注意到更改。
When adding your package, select the option to "Create Folder References for any added folders". Xcode will create a reference to the directory, and notice changes every time you rebuild the package.