3.2 和 3.1 之间的 Xcode 项目

发布于 2024-10-01 06:56:19 字数 307 浏览 0 评论 0原文

我使用 Leopard 在 3.1 中启动了一个 Xcode 项目。然后我把这个项目带回家,周末继续研究。在家里,我有 Snow Leopard 上的 Xcode 3.2。从那时起,我在 Leopard/3.1 和 Snow Leopard/3.2 上开发这个项目之间多次切换。该项目在任一设置上都可以正常编译。但是,如果我在 3.1 上构建(在发布模式下),可执行文件将无法在 Snow Leopard 中运行。如果我在 3.2 中构建,可执行文件将无法在 Leopard 中运行。

我的项目设置为 32 位通用、基本 SDK 10.5 和发布模式。

有什么想法吗?

I started an Xcode project in 3.1 using Leopard. Then I took this project home to work on it over the weekend. At home, I have Xcode 3.2 on Snow Leopard. Since then, I have switched many times between developing this project on Leopard/3.1 and Snow Leopard/3.2. The project compiles fine on either setup. But, if I build on 3.1 (in release mode), the executable will not run in Snow Leopard. And If I build in 3.2, the executable will not run in Leopard.

My project settings are for 32-bit universal, base SDK 10.5, and the Release mode.

Any ideas?

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

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

发布评论

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

评论(2

眼藏柔 2024-10-08 06:56:19

从 Leopard 切换到 Snow Leopard 并返回并不好,因为 Snow Leopard 与 Leopard 的配合效果不佳,反之亦然。要解决此问题,请将两台计算机都升级到 Snow Leopard 和最新版本的 xcode。但在此之前,请先尝试清理项目,然后进行编译。

Switching from leopard to snow leopard and back isn't good, because snow leopard doesn't work well with leopard and vice versa. To resolve this issue, upgrade both machines to snow leopard and the latest version of xcode. But before you do that, try cleaning your project first then compile.

誰ツ都不明白 2024-10-08 06:56:19

在这里我将回答我自己的问题,或者至少尝试解释它。

我通过 DropBox 将 Xcode 项目文件从 Leopard 传输到 Snow Leopard(此问题也通过 USB 闪存驱动器传输发生)。

当我在通过 DropBox 后尝试打开目标应用程序时,该应用程序无法打开。我打开控制台,并收到“posix_spawnp(blabla)。权限被拒绝”所以,这是一个权限问题。 ( sudo chmod a+x /username/Applications/AppName.app/Contents/MacOS/AppName 会让我运行该应用程序)。

我不知道是否需要修复本地计算机上 Dropbox 文件夹的权限,或者 DropBox 服务是否存在问题。

但要将应用程序从 Leopard 传输到 Snow Leopard,首先我必须压缩应用程序并通过 DropBox 传输 zip 文件。显然,压缩保留了 .app 的权限,并且不会让 DropBox 弄乱它。

Here I will answer my own question, or at least, try to explain it.

I was transferring the Xcode project files from Leopard to Snow Leopard via DropBox (this problem also happened via a USB flash drive transfer).

When I tried to open the target application after moving through DropBox, the app wouldn't open. I opened the Console, and got a "posix_spawnp(blabla). Permission denied" So, it's a permissions issue. (sudo chmod a+x /username/Applications/AppName.app/Contents/MacOS/AppName would let me run the app).

I dunno if I need to fix permissions on my Dropbox folder on my local machine, or if it's a problem with the DropBox service.

But to transfer the app from Leopard to Snow Leopard, first I must zip the app and transfer the zip file via DropBox. Apparently, zipping preserves the permissions of the .app and doesn't let DropBox mess with it.

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