即使我可以编译和运行一个简单的热可可代码,但它不会生成自动生成的热可可代码。我正在运行Mac和XCode for Lion (不过我甚至没有用XCode做热可可)。
有什么解决方案吗?
$ 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发布于 2011-06-08 22:39:32
我在Snow Leopard中也遇到了这个问题。我不怎么优雅的解决方案是编辑我的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'后来我读到,如果你安装了热可可宝石的this version,这个改变就会为你做,但我还没有试过,所以我不能肯定。
https://stackoverflow.com/questions/6042317
复制相似问题