Can anyone explain why I get different results when compiling the same XCode 4.x project using the GUI and xcodebuild command-line?
XCode GUI
- Perform a clean
- Build "Release" target
- Build successfully
xcodebuild
- Perform a clean
- 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: No such file or directory ** BUILD FAILED **
The following build commands 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
And finally GUI + xcodebuild
- Perform a clean in GUI
- Build "Release" target
- Builds successfully
- Run "xcodebuild -configuration Release"
- Builds successfully