Skip to content

Instantly share code, notes, and snippets.

@ddemaree
Created May 15, 2012 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddemaree/2701381 to your computer and use it in GitHub Desktop.
Save ddemaree/2701381 to your computer and use it in GitHub Desktop.
Error compiling Core Data model in RubyMotion 1.4
› rake
Build ./build/iPhoneSimulator-5.1-Development
Build ./vendor/AFNetworking
Link ./build/iPhoneSimulator-5.1-Development/CB Ruby.app/CB Ruby
Compile ./resources/Cashbox.xcdatamodeld
./resources/Cashbox.xcdatamodeld:0: error: Compilation failed for data model at path './resources/Cashbox.momd/Cashbox.mom'
rake aborted!
Command failed with status (1): ["/Applications/Xcode.app/Contents/Develope...]
Tasks: TOP => default => simulator => build:simulator
(See full trace by running task with --trace)
@ddemaree
Copy link
Author

Is RubyMotion passing a relative output path to the momc compiler tool? Bizarrely, while momc can take a relative input path, its output path must be absolute. This command fails:

/Applications/Xcode.app/Contents/Developer/usr/bin/momc ./resources/Cashbox.xcdatamodeld \
./resources/Cashbox.momd

This one does not:

/Applications/Xcode.app/Contents/Developer/usr/bin/momc ./resources/Cashbox.xcdatamodeld \
$PWD/resources/Cashbox.momd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment