{"action":"closed","issue":{"url":"https://api.github.com/repos/rentzsch/mogenerator/issues/169","labels_url":"https://api.github.com/repos/rentzsch/mogenerator/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/rentzsch/mogenerator/issues/169/comments","events_url":"https://api.github.com/repos/rentzsch/mogenerator/issues/169/events","html_url":"https://github.com/rentzsch/mogenerator/issues/169","id":17914939,"number":169,"title":"1.27 asserts on -[MOGeneratorApp setModel:] (current rev is OK)","user":{"login":"fritza","id":669753,"avatar_url":"https://avatars.githubusercontent.com/u/669753?v=3","gravatar_id":"","url":"https://api.github.com/users/fritza","html_url":"https://github.com/fritza","followers_url":"https://api.github.com/users/fritza/followers","following_url":"https://api.github.com/users/fritza/following{/other_user}","gists_url":"https://api.github.com/users/fritza/gists{/gist_id}","starred_url":"https://api.github.com/users/fritza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fritza/subscriptions","organizations_url":"https://api.github.com/users/fritza/orgs","repos_url":"https://api.github.com/users/fritza/repos","events_url":"https://api.github.com/users/fritza/events{/privacy}","received_events_url":"https://api.github.com/users/fritza/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2013-08-11T17:04:49Z","updated_at":"2015-12-26T16:33:04Z","closed_at":"2015-12-26T16:33:04Z","body":"The latest public release (1.27) asserts in `-[MOGeneratorApp setModel:]` for a stupid-simple `xcdatamodeld`. This is fixed in the latest revision, (`e8a05a316`), but I have to explain mogenerator to a readership that can't be trusted to clone a Git repo.\r\n\r\nSupplying the `.xcdatamodel` inside the `.xcdatamodeld` cures the problem in 1.27.\r\n\r\nThe notes for 1.27 advertise the handling of  `.xcdatamodeld` as an enhancement in that release.\r\n\r\nCan a 1.28 possibly be packaged-up in the next few weeks?\r\n\r\n> Always recognizing I may be doing something boneheaded.\r\n\r\nSample project in [Dropbox](https://www.dropbox.com/s/1xcccdmkjxje0ta/KillMeMogenerator.zip).\r\n\r\n``` bash\r\n$ mogenerator -v\r\nmogenerator 1.27. By Jonathan 'Wolf' Rentzsch + friends.\r\n\r\n$ pwd\r\n/Users/fritza/Desktop/KillMeMogenerator/KillMeMogenerator\r\n\r\n$ ls\r\nBase.lproj\t\t\tKillMeMogenerator-Info.plist\r\nImages.xcassets\t\t\tKillMeMogenerator-Prefix.pch\r\nKMGAppDelegate.h\t\tModel.xcdatamodeld\r\nKMGAppDelegate.m\t\ten.lproj\r\nKMGViewController.h\t\tmain.m\r\nKMGViewController.m\r\n\r\n$ mogenerator --model Model.xcdatamodeld/\r\nAssertion failed: (model), function -[MOGeneratorApp setModel:], file /Users/wolf/code/github/mogenerator/mogenerator.m, line 681.\r\nAbort trap: 6\r\n\r\n$ mogenerator --model Model.xcdatamodeld/Model.xcdatamodel/\r\n4 machine files and 4 human files generated.\r\n\r\n$ \r\n```"}}