Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

ddemaree commented May 15, 2012

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