首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MacRuby HotCocoa $ macrake //错误

MacRuby HotCocoa $ macrake //错误
EN

Stack Overflow用户
提问于 2011-05-18 17:10:54
回答 1查看 465关注 0票数 3

即使我可以编译和运行一个简单的热可可代码,但它不会生成自动生成的热可可代码。我正在运行Mac和XCode for Lion (不过我甚至没有用XCode做热可可)。

有什么解决方案吗?

代码语言:javascript
复制
$ 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
EN

回答 1

Stack Overflow用户

发布于 2011-06-08 22:39:32

我在Snow Leopard中也遇到了这个问题。我不怎么优雅的解决方案是编辑我的hotcocoa gem副本,删除对i386架构的引用。

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

代码语言:javascript
复制
archs = RUBY_ARCH.include?('ppc') ? '-arch ppc' : '-arch i386 -arch x86_64'

至:

代码语言:javascript
复制
archs = RUBY_ARCH.include?('ppc') ? '-arch ppc' : '-arch x86_64'

后来我读到,如果你安装了热可可宝石的this version,这个改变就会为你做,但我还没有试过,所以我不能肯定。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6042317

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档