Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Add momc path for Xcode 4.3 command line tools. #90

merged 1 commit into from

3 participants


Deals with failing momc assert after upgrading to Xcode4.3 and installing the optional command line tools, which puts the momc binary into /Applications/


Horray, I was hoping someone would send me this patch :) Thanks.

@rentzsch rentzsch merged commit 2a80b86 into rentzsch:master

You might want to consider using xcrun to find momc. "xcrun -find momc" will return you the path to momc. "xcrun momc" will just run it.


@honus: great tip! Will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  mogenerator.m
3  mogenerator.m
@@ -527,6 +527,9 @@ - (void)setModel:(NSString*)path;
if([fm fileExistsAtPath:defaultLocation]) {
momc = defaultLocation;
+ } else if ([fm fileExistsAtPath:@"/Applications/"]) {
+ // Xcode 4.3 - Command Line Tools for Xcode
+ momc = @"/Applications/";
} else if ([fm fileExistsAtPath:@"/Developer/usr/bin/momc"]) { // Xcode 3.1 installs it here.
momc = @"/Developer/usr/bin/momc";
} else if ([fm fileExistsAtPath:@"/Library/Application Support/Apple/Developer Tools/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc"]) { // Xcode 3.0.
Something went wrong with that request. Please try again.