如何在 Xcode 中使用单个项目文件(在多台计算机上)

发布于 2024-08-24 20:46:26 字数 130 浏览 5 评论 0原文

我在两台不同的计算机上使用不同的用户名进行编码。 Xcode 为每个文件创建一个 .pbxuser 文件,因此有必要复制每个文件的配置。

这很容易出错,并且文件不适合差异化,因此必须仔细检查所有内容。有什么办法可以避免这种情况吗?

I code on 2 different computers with different username. Xcode makes a .pbxuser file for each one, making necesary replicate the config from each one.

This is error prone, and the files are not diff-friendly so everything must be carefully checked. Any way to avoid this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

╄→承喏 2024-08-31 20:46:26

.pbxuser 文件中的信息并不是特别重要 - 它只是个人设置,例如窗口位置、断点等。所有重要的内容都在 project.pbxproj 中,这是您需要同步/备份/签入源的唯一文件控制/等您可以忽略甚至删除 .xcodeproj 目录中的其他文件 - 它们将使用默认设置重新创建。

The info in the .pbxuser file is not particularly important - it's just personal settings like window locations, breakpoints, etc. All the important stuff is in project.pbxproj and this is the only file you need to sync/back up/check into source control/etc. You can ignore or even delete the other files in the .xcodeproj directory - they will get re-created with default settings.

缺⑴份安定 2024-08-31 20:46:26

.pbxuser 文件确实包含自定义可执行文件。因此,如果您使用自定义可执行文件作为单元测试运行程序(或其他一些可执行文件),您可能必须共享该文件

the .pbxuser file does contain custom executables in there. So if you use a custom executable as a unit test runner, (or some other executable) you might have to share that file

尘曦 2024-08-31 20:46:26

当我有 Xcode 项目时,我可能需要在多台计算机上处​​理,我只是将我的项目放在 Dropbox 上。然后它位于我可能用来处理它的任何计算机上的同一文件夹中,并且每次修改文件时都会同步更改。这样我就可以在每台计算机上处​​理完全相同的相同项目。

When I have Xcode projects I might have to work on on multiple computers, I just have my project live on Dropbox. Then it's in the same folder on any computer I might use to work on it, and the changes get synced every time files are modified. That way I'm literally working on the exact same project on each computer.

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