Bonus Track
Embedding MacRuby
Resources
6 comments
Very useful!
Another thing I did was to have the load path directive look for the frameworks directory so either target will build whether or not MacRuby has been bundled:
http://gist.github.com/110189
Geoffrey: Ah, thanks, that's a good catch!
I probably should have mentioned that you can just copy the MacRuby run script into the main target and make it the final build phase. That means you only have one target to manage, but could be less flexible depending on how you plan to distribute the app.
Mike, thanks a lot for these high quality free screencasts. Unfortunately for any non trivial application that makes use of the standard library, the embedding doesn't work. For example I tried to require yaml that is dependent on the stringio.bundle. The bundle still refers to MacRuby in /Library/Frameworks. Maybe I'm missing something, but I couldn't distribute my little app to friends without MacRuby installed.
Reborg:
That sounds like a problem specific to the yaml library and its use of stringio.bundle. I've been able to use other standard Ruby libraries. Hopefully a future version of MacRuby will smooth this out.
Thanks for the heads-up, though!
Mike
In the meanwhile, here's a workaround: http://reborg.tumblr.com/post/155619150/embedding-macruby
Thanks again

