Skip to content
This repository

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

Merged
merged 1 commit into from about 2 years ago

3 participants

Matt McGlincy Jonathan 'Wolf' Rentzsch honus
Matt McGlincy

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

Jonathan 'Wolf' Rentzsch
Owner

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

Jonathan 'Wolf' Rentzsch rentzsch merged commit 2a80b86 into from
Jonathan 'Wolf' Rentzsch rentzsch closed this
honus
honus commented

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.

Jonathan 'Wolf' Rentzsch
Owner

@honus: great tip! Will do.

Jonathan 'Wolf' Rentzsch rentzsch referenced this pull request
Closed

Use xcrun #118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Feb 16, 2012
Matt McGlincy Check for momc as installed by Xcode4.3 command line tools. 68e0856
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  mogenerator.m
3  mogenerator.m
@@ -527,6 +527,9 @@ - (void)setModel:(NSString*)path;
527 527
         
528 528
         if([fm fileExistsAtPath:defaultLocation]) {
529 529
             momc = defaultLocation;
  530
+        } else if ([fm fileExistsAtPath:@"/Applications/Xcode.app/Contents/Developer/usr/bin/momc"]) { 
  531
+            // Xcode 4.3 - Command Line Tools for Xcode
  532
+            momc = @"/Applications/Xcode.app/Contents/Developer/usr/bin/momc";
530 533
         } else if ([fm fileExistsAtPath:@"/Developer/usr/bin/momc"]) { // Xcode 3.1 installs it here.
531 534
             momc = @"/Developer/usr/bin/momc";
532 535
         } else if ([fm fileExistsAtPath:@"/Library/Application Support/Apple/Developer Tools/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc"]) { // Xcode 3.0.
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.