Skip to content

Instantly share code, notes, and snippets.

@czottmann
Created January 22, 2010 15:39
Show Gist options
  • Save czottmann/283849 to your computer and use it in GitHub Desktop.
Save czottmann/283849 to your computer and use it in GitHub Desktop.
Snippets for my blog entry "Xcode & MacRuby: Embed, Compile, Fix"
PATH="$PATH:/usr/local/bin" macruby_deploy --embed --compile "$TARGET_BUILD_DIR/$PROJECT_NAME.app"
install_name_tool -change /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib "@executable_path/../Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib" "$TARGET_BUILD_DIR/$PROJECT_NAME.app/Contents/MacOS/$PROJECT_NAME"
for F in $TARGET_BUILD_DIR/$PROJECT_NAME.app/Contents/Resources/*.rbo; do
install_name_tool -change /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib "@executable_path/../Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib" "$F"
done
core:in `each': dlopen(/Users/Carlo/Code/mynewapp/build/Release/MyNewApp.app/Contents/Resources/SomeController.rbo, 9): Library not loaded: /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/libmacruby.dylib
Referenced from: /Users/Carlo/Code/mynewapp/build/Release/MyNewApp.app/Contents/Resources/SomeController.rbo
Reason: image not found - /Users/Carlo/Code/mynewapp/build/Release/MyNewApp.app/Contents/Resources/SomeController.rbo (LoadError)
from rb_main.rb:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment