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

Merged
merged 1 commit into from Feb 17, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −0
Split
View
@@ -527,6 +527,9 @@ - (void)setModel:(NSString*)path;
if([fm fileExistsAtPath:defaultLocation]) {
momc = defaultLocation;
+ } else if ([fm fileExistsAtPath:@"/Applications/Xcode.app/Contents/Developer/usr/bin/momc"]) {
+ // Xcode 4.3 - Command Line Tools for Xcode
+ momc = @"/Applications/Xcode.app/Contents/Developer/usr/bin/momc";
} 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.