MacRuby HotCocoa $macrake // 错误

发布于 2024-11-08 14:37:15 字数 765 浏览 0 评论 0原文

尽管我可以通过执行以下操作来编译并运行简单的 hotcocoa 代码,但它不会自动生成 hotcocoa 代码。我正在运行 Mac OS X Lion 和 XCode for Lion(不过,我什至没有使用 XCode for hotcocoa。)

有什么解决方案吗?

$ hotcocoa test
$ cd test
$ macrake

(in ./test)
ld: warning: ignoring file /Library/Frameworks//MacRuby.framework/MacRuby, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
  "_macruby_main", referenced from:
      _main in ccjW87h1.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/n7/tw8kvz501jf6w59dhxxnmxbr++++fn/T//ccsIOdx5.out (No such file or directory)

/bin/sh: ./Test.app/Contents/MacOS/Test: No such file or directory

Even though I can compile and run a simple hotcocoa code by doing , it won't rake auto-generated hotcocoa code. I'm running Mac OS X Lion and XCode for Lion (I'm not even using XCode for hotcocoa, though.)

Any solution for this?

$ hotcocoa test
$ cd test
$ macrake

(in ./test)
ld: warning: ignoring file /Library/Frameworks//MacRuby.framework/MacRuby, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
  "_macruby_main", referenced from:
      _main in ccjW87h1.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/n7/tw8kvz501jf6w59dhxxnmxbr++++fn/T//ccsIOdx5.out (No such file or directory)

/bin/sh: ./Test.app/Contents/MacOS/Test: No such file or directory

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

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

发布评论

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

评论(1

你是年少的欢喜 2024-11-15 14:37:16

我在雪豹中也遇到了这个问题。我的不优雅和黑客解决方案是编辑我的 hotcocoa gem 副本并删除对 i386 架构的引用。

$GEM_FOLDER/lib/hotcocoa/application_builder.rb 中,我将第 215 行:更改

archs = RUBY_ARCH.include?('ppc') ? '-arch ppc' : '-arch i386 -arch x86_64'

为:

archs = RUBY_ARCH.include?('ppc') ? '-arch ppc' : '-arch x86_64'

我已经读过,如果您安装 此版本 的 hotcocoa gem 此更改是为您所做的,但我还没有尝试过,所以我不能肯定地说。

I had this problem in Snow Leopard as well. My in-elegant and hack solution was to edit my copy of the hotcocoa gem and remove the reference to the i386 architecture.

in the $GEM_FOLDER/lib/hotcocoa/application_builder.rb I changed line 215:

archs = RUBY_ARCH.include?('ppc') ? '-arch ppc' : '-arch i386 -arch x86_64'

to:

archs = RUBY_ARCH.include?('ppc') ? '-arch ppc' : '-arch x86_64'

I've since read that if you install this version of the hotcocoa gem this change gets made for you, but I haven't tried it so I can't say for sure.

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