Why are there differences between using Xcode and xcodebuild?

Can someone explain why I get different results when compiling the same Xcode 4.x project using the GUI command line and xcodebuild?

Xcode GUI

  • Perform cleaning
  • Create a "Release" target
  • Build Successfully

xcodebuild

  • Perform cleaning
  • Run "xcodebuild -configuration Release"
  • Results in the following errors:

    /Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage-length = 0 -pipe -std = gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn- type -Wunused -variable -isysroot / Developer / SDKs / MacOSX10.4u.sdk -fvisibility = hidden -mmacosx-version-min = 10.4 -c "/Users/XXX/Extensions/NSFileManager_Extensions.m" -o "/ Users / XXX / Developer / Intermediates / YourApp.build / Release / YourApp.build / Objects-normal / ppc / NSFileManager_Extensions.o "/ Users / XXX / Extensions / NSFileManager _Extensions.m: 15: 60: error: ToxicRegularExpressions / ToxicRegularExpressions.h: There is no such file or Directory ** BUILD FAILED **

:   CompileC "/Users/XXX/Developer/Intermediates/YourApp.build/Release/YourApp.build/Objects-normal/ppc/NSFileManager_Extensions.o" /Users/XXX/Extensions/NSFileManager _Extensions.m normal ppc objective-c com.apple. compilers.gcc.4_0

GUI + xcodebuild

  • "Release" target
  • "xcodebuild -configuration Release"
+5
3

SDK , :

xcodebuild -configuration Release -sdk iphonesimulator3.0
+2
0

, -scheme. xcodebuild "" , . , , .

: Postscriptum xcodebuild zombie OBJROOT

0

All Articles