[MacRuby-devel] MacRuby / Hotcocoa / Macrake issue

Gary Weaver gary.weaver at duke.edu
Mon Apr 18 12:05:47 PDT 2011


If you go down the road of fixing it, you might want to fork HotCocoa 
and/or MacRuby in GitHub.

For HotCocoa, check out the other branches first in the network graph 
below to see whether someone already fixed, and if not there then maybe 
want to branch off of Rich's version, fix and do a pull request:
https://github.com/richkilmer/hotcocoa/network

Similarly, if it is a MacRuby change, you might fork from:
https://github.com/macruby/macruby
and do a pull request back to that project, if it is something everyone 
else with with 32 or 64 bit could use.

There is a short bit about ARCHFLAGS in:
http://www.macruby.org/trac/wiki/WhatsNewInLeopard

But I think I found your issue here:
http://redwoodapp.posterous.com/macruby-and-xcode-4-build-a-self-contained-ma

 From that post, it looks like you need to:

1. *Change the Valid Architectures to X84_64 only

*in XCode settings for the project, you select valid architectures and 
double-click the value listed, then select i386 and click on the minus sign.

*B) Add a build target to the Deployment scheme:*

select Deployment Scheme then Edit Scheme, then click Build, then click 
"+" to add one as it describes in that post (they added "Alpha" with 
everything checked, but I don't know if that was just for that project 
or not).

I have no idea though. Unfortunately, I don't use XCode, really, which 
is the reason I liked the idea of HotCocoa. IDEs are nice, but with 
Ruby, you just kind of assume you can use TextMate. :)

Gary


On 4/18/11 2:37 PM, Nick Brandaleone wrote:
> Hello,
>
> I am new to MacRuby, and I am loving it!  :-)
> I have done some RubyCocoa programming in the past, but I am now playing around with the MacRuby frameworks.
>
> I am having an issue with macruby/hotcocoa and macrake.  It looks like it is a loader/linker issue with the wrong architecture.
> I am running x_64, and I believe the loader is referencing a 32-bit build.
>
> I understand how to alter this using Xcode, but I am not sure how to correct this for the MacRuby/hotcocoa/macrake framework.
> Or is it something else entirely?!
>
> ===========================================================
> [macpro:~/src/macruby/my_first_app] macrake run
>
> (in /Users/nbrand/src/macruby/my_first_app)
> 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 ccTmkyxO.o
> ld: symbol(s) not found for architecture i386
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/folders/bx/bxsDMQkhFGCnAlLx4sEiEE+++TM/-Tmp-//ccDFJISw.out (No such file or directory)
>
> /bin/sh: ./My First App.app/Contents/MacOS/MyFirstApp: No such file or directory
> ===========================================================
>
>
> Nick
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110418/2c0b719b/attachment-0001.html>


More information about the MacRuby-devel mailing list