Browse files

Check for momc as installed by Xcode4.3 command line tools.

  • Loading branch information...
1 parent c0a0ba4 commit 68e0856eae42c40afcaa173bffd0029ddda5ef4f @mcglincy mcglincy committed Feb 16, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 mogenerator.m
View
3 mogenerator.m
@@ -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.

0 comments on commit 68e0856

Please sign in to comment.