3.2 和 3.1 之间的 Xcode 项目
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 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.
在这里我将回答我自己的问题,或者至少尝试解释它。
我通过 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.