Xcode 和 xcodebuild 上的不同行为

发布于 2024-12-19 16:19:07 字数 316 浏览 4 评论 0原文

我有一个构建我的项目的 CI 环境。因此,当我使用 xcodebuild -target MyTarget 编译项目并在物理设备上运行它时,我遇到了 Three20 库之一的视觉错误以及可重现的崩溃。

然而,当我通过 Xcode 编译并运行该项目和相同的目标时,我既没有崩溃也没有视觉问题。

由于我没有对 xcodebuild 做任何花哨的事情,所以我希望这两个构建是相同的。一般来说,我宁愿在两个地方出现问题,也不愿两个构建的行为不同。

有人遇到过类似的问题吗?我如何确保 Xcode 和 xcodebuild 的产品相同?非常感谢您的帮助。

I have a CI environment which builds my project. So when I compile my project with xcodebuild -target MyTarget and run it on a physical device, I get a visual bug with one of the Three20 libraries as well as a reproducible crash.

However, when I compile and run the project and the same target via Xcode I neither have the crash nor the visual problem.

Since I don't do anything fancy with xcodebuild I would expect the two builds to be identical. Generally I'd rather have the problem in two places than the two builds behave differently.

Has anyone run into similar issues and how can I make sure that the product of Xcode and xcodebuild is identical? Thanks a lot for your help.

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

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

发布评论

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

评论(1

倒数 2024-12-26 16:19:07

尝试运行xcodebuild -scheme MyScheme,其中MyScheme很可能是您的目标名称(如果 Xcode 为您自动生成了方案)。

GUI 在构建时使用方案,我发现通常可以通过为 xcodebuild 指定方案来获得相同的行为。

Try running xcodebuild -scheme MyScheme, where MyScheme is most likely the name of your target if Xcode auto-generated the scheme for you.

The GUI uses schemes when building and I've found that you can usually get the same behavior by specifying a scheme to xcodebuild.

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