在 Xcode 中,您可以为类指定另一个默认文件夹,而不是 Classes/ 吗?
如果您创建新文件,并且项目根目录中没有 Classes/ 子目录,Xcode 会将它们转储到项目根目录中。我想具体说明他们去了哪里。
FWIW,我知道您可以将项目的各个文件链接到任何地方,有很多选项。另外,我在这里讨论的是实际的文件系统,而不是您在 Xcode 项目中看到的组等。
If you create new files, and don't have a Classes/ subdirectory in the project root directory, Xcode dumps them in the project root. I'd like to specify where they go.
FWIW, I know you can link individual files a project to anywhere, with lots of options. Also, what I'm talking about here is the actual file system, not the groups, etc. that you see in your Xcode project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
右键单击(或按住 Control 单击)要放置文件的任何组,然后选择添加新文件的选项。
要将它们放在文件系统上的特定位置,请在下拉菜单中选择一个位置,或单击“选择”按钮来选择一个目录:
Right-click (or control-click) on whatever group you want to put the files, and select the option to add a new file.
To put them in a specific location on the file system, select a Location in the drop down menu, or click the Choose button to pick a directory: