为 Leopard 和 Snow Leopard 构建相同的 RubyCocoa 应用程序版本
我有基于 RubyCocoa 0.13.2 的应用程序。它适用于 10.5.8 及更早版本。当我尝试在 10.6 上运行它时,它在无限循环中崩溃。 10.6 内置了 0.13.2,但它与 10.5 的二进制文件不同。当我尝试使用 10.6 中的 0.13.2 框架构建应用程序的 Xcode 3.1.3 项目时,它给出了链接错误 - 0.13.2 框架二进制文件上的对象格式错误。尽管我只构建了 32 Arch,但使用 Xcode 3.2 构建的应用程序无法在 leopard 上运行。配置。我的问题是是否有办法构建一个可以在两个平台上运行的版本?
谢谢,
Nava
编辑:试图解决这个问题我感到非常疲惫,最好的办法就是重写 Cocoa 中的所有内容,至少你可以以人类的方式调试它。但我没有获得这种奢侈的许可:)
I have RubyCocoa 0.13.2 based application. It works on 10.5.8 and earlier versions. When i try to run it on 10.6 it crashes on infinite loop. 10.6 has 0.13.2 built in, but it's not same binary as for 10.5. When i tried to build my application's Xcode 3.1.3 project with 0.13.2 framework from 10.6, it gave a link error - malformed object on 0.13.2 framework binary. The application, that is built with Xcode 3.2 doesn't run on leopard, in spite that i built only 32 Arch. configuration. My question is whether there is a way to build a version, that will run on both platforms?
Thanks,
Nava
EDIT: I feel pretty exhausted trying to solve it and the best thing would be to just rewrite everything in Cocoa, at least you can debug it in a human way. But i don't have a permission for this luxury :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
也许是胖二进制?
fat binary maybe??
我收到了 RubyCocoa 源锻造团队关于 RubyCocoa 版本 1.0.1 的通知,该版本应该适用于 Leopard 和 RubyCocoa。雪豹。会给它一个机会,特别是它有一个版本的修复。 1.0.0 在 Snow Leopard 上崩溃
I got a notification from RubyCocoa source forge team on a RubyCocoa version 1.0.1 which is supposed to work for Leopard & Snow Leopard. Will give it a chance, especially it has a fix for a ver. 1.0.0 crash on Snow Leopard
解决了!
首先,有一个新的 RubyCocoa 版本(修订版 2277,基于 1.0.0,即将发布),解决了 SL 崩溃问题,并且适用于 Leopard 和 RubyCocoa。雪豹。
我为 i386 构建了 RubyCocoa 版本ppc 架构。
在项目中我设置了32bit-universal。基础 SDK = 10.5,部署目标 = 10.5,编译器 = GCC 4.0。
现在我有了一个版本,可以在 Leopard & 上构建。 Snow Leopard 并且它可以在两个平台上运行(它并没有说没有崩溃,但这是另一个问题)
SOLVED!
First of all there is a new RubyCocoa version (rev. 2277, based on 1.0.0, soon the release), that solved SL crash and works for both Leopard & Snow Leopard.
I built a RubyCocoa version for i386 & ppc architectures.
In the project I set 32bit-universal. Base SDK = 10.5, Deployment target = 10.5, Compiler = GCC 4.0.
Now I have one version, that I can build on Leopard & Snow Leopard and it works on both platforms (it doesn't say, that it there are no crashes, but this is for another question)
您可能应该具有以下构建设置:-
如果这在 10.5 上不起作用,请尝试更改
我认为 GCC 的版本并不重要,除非你无法成功构建。
You should probably have the following build settings :-
If this doesn't work on 10.5, try changing
I don't think the version of GCC should matter unless you can't build successfully.