Getting the "Embed MacRuby" target working
I've been trying to get my Xcode project setup correctly with the "Embed MacRuby" target. I've made the two-line change as suggested in tutorial and, unless I execute the target, I'm unable to load any Ruby classes. So then I made the "Embed…" target a pre-requisite of my application build. However when attempting to build after a clean, it fails because I don't have the correct build directories in place. The only way I could get it to work seamlessly regardless of project state was to add a new script to my application build and copy the contents of the "Embed…" task into the new task. Is there a better way of doing this? I feel like I've missed something here. Thanks, Alex ---- Musings & Notes — http://alexvollmer.com Track what you lend and borrow — http://moochbot.com
Hi Alex, The "Embed MacRuby" isn't perfect yet. You have to first build your project normally and then built it with the proper target. I guess Laurent would accept a patch if you care to spend some time fixing this issue. - Matt On Mon, Apr 27, 2009 at 8:43 PM, Alex Vollmer <alex.vollmer@gmail.com>wrote:
I've been trying to get my Xcode project setup correctly with the "Embed MacRuby" target. I've made the two-line change as suggested in tutorial and, unless I execute the target, I'm unable to load any Ruby classes. So then I made the "Embed…" target a pre-requisite of my application build. However when attempting to build after a clean, it fails because I don't have the correct build directories in place. The only way I could get it to work seamlessly regardless of project state was to add a new script to my application build and copy the contents of the "Embed…" task into the new task. Is there a better way of doing this? I feel like I've missed something here. Thanks,
Alex ---- Musings & Notes — http://alexvollmer.com Track what you lend and borrow — http://moochbot.com
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
On Apr 27, 2009, at Apr 27, 9:44 PM, Matt Aimonetti wrote:
Hi Alex,
The "Embed MacRuby" isn't perfect yet. You have to first build your project normally and then built it with the proper target.
I guess Laurent would accept a patch if you care to spend some time fixing this issue. - Matt
Matt, thanks for the update. Just wanted to make sure it wasn't the usual pilot-error. I'll poke at it a bit and see if I can't come up with a tweak of two. Thanks! —Alex ---- Musings & Notes http://blog.livollmers.net
participants (2)
-
Alex Vollmer
-
Matt Aimonetti