gpt4 book ai didi

xcode - MacRuby HotCocoa $ macrake//错误

转载 作者:行者123 更新时间:2023-12-04 17:21:06 26 4
gpt4 key购买 nike

即使我可以编译并运行一个简单的 hotcocoa 代码,它也不会提取自动生成的 hotcocoa 代码。我正在运行 Mac OS X Lion 和 Lion 的 XCode(不过,我什至没有将 XCode 用于 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

最佳答案

我在 Snow Leopard 中也遇到了这个问题。我的优雅和 hack 解决方案是编辑我的 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 hotcocoa gem 的这种变化是为你做的,但我没有尝试过,所以我不能肯定地说。

关于xcode - MacRuby HotCocoa $ macrake//错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6042317/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com