MacRuby HotCocoa $macrake // 错误
尽管我可以通过执行以下操作来编译并运行简单的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在雪豹中也遇到了这个问题。我的不优雅和黑客解决方案是编辑我的 hotcocoa gem 副本并删除对 i386 架构的引用。
在
$GEM_FOLDER/lib/hotcocoa/application_builder.rb
中,我将第 215 行:更改为:
我已经读过,如果您安装 此版本 的 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:to:
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.