1

I'm trying to manually compile an xcode project and I can't manage to compile it using xcodebuild when I specify an SDK through the -sdk option.

This fails:

/usr/bin/xcodebuild -project "libjpeg.xcodeproj"  -configuration "Release" -sdk iphonesimulator -arch i386 CONFIGURATION_BUILD_DIR=build build

and this works:

/usr/bin/xcodebuild -project "libjpeg.xcodeproj"  -configuration "Release" -arch i386 CONFIGURATION_BUILD_DIR=build build

I have installed XCode 4.3.3 and Command line tools from the Apple's developer page, and everything else it's working without problems. If I build this project using XCode, it works without problems too. There's no other xcode version in my system.

I should have something really broken in my env, but I can't manage to find it. I'd appreciate any hints you could give me.

Ferdev
  • 23
  • 1
  • 5

1 Answers1

1

You need to specify something like -sdk iphonesimulator6.0

See this answer: parameter for xcodebuild for using latest sdk.

Community
  • 1
  • 1
Jasper Blues
  • 28,258
  • 22
  • 102
  • 185