rentzsch / mogenerator

Core Data code generation
http://rentzsch.github.com/mogenerator
MIT License
3.03k stars 395 forks source link

Abort Trap 6 #351

Closed rrgood closed 7 years ago

rrgood commented 7 years ago

When attempting to run mogenerator from the terminal I get:

Radar.xcdatamodeld.zip Richards-iMac:Qinlin rrg$ mogenerator -m Radar.xcdatamodeld/Radar.xcdatamodel -O Coredata --swift --template-var arc=true Assertion failed: (property), function -[NSEntityDescription(customBaseClass) _resolveKeyPathType:], file /Users/wolf/code/github/mogenerator/mogenerator.m, line 313. Abort trap: 6

rentzsch commented 7 years ago

You have a bug in your model. fetchByID references DBObject internalID, which it doesn't have.

Yes, mogenerator's error could be much better here. Pull Requests welcome.

rrgood commented 7 years ago

Thank you. Really appreciate the quick response, and your open source generosity.

Richard Good C.T.O. trueIDapps (619) 248 7381

http://www.goodschooltools.com http://www.trueidapps.com/

http://itunes.apple.com/us/app/trueidsuite/id414351392?ls=1&mt=8  http://itunes.apple.com/us/app/trueidsuite/id414351392?ls=1&mt=8     https://itunes.apple.com/us/app/student-lists-for-school-staff/id956566787?mt=8   https://itunes.apple.com/us/app/student-lists-for-school-staff/id956566787?mt=8    https://itunes.apple.com/us/app/tardy/id817033756?mt=8

trueidSuite https://itunes.apple.com/us/app/trueidsuite/id414351392?mt=8        https://itunes.apple.com/us/app/student-lists-for-school-staff/id956566787?mt=8Student Lists https://itunes.apple.com/us/app/student-lists-for-school-staff/id956566787?mt=8 Tardy https://itunes.apple.com/us/app/tardy/id817033756?mt=8

On Oct 4, 2016, at 5:45 PM, Wolf Rentzsch notifications@github.com wrote:

You have a bug in your model. fetchByID references DBObject internalID, which it doesn't have.

Yes, mogenerator's error could be much better here. Pull Requests welcome.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rentzsch/mogenerator/issues/351#issuecomment-251554005, or mute the thread https://github.com/notifications/unsubscribe-auth/ASmD5edEwLD-XbUW8hSYSMgJqeW6iHcWks5qwvMdgaJpZM4KOQPj.