在 Xcode 中,您可以为类指定另一个默认文件夹,而不是 Classes/ 吗?

发布于 2024-09-26 20:36:39 字数 156 浏览 1 评论 0原文

如果您创建新文件,并且项目根目录中没有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月光色 2024-10-03 20:36:39

右键单击(或按住 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:
alt text

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文