git error “unable to locate xcodebuild” after a fresh OS X Mavericks upgrade
This works for me sudo xcode-select –switch /Library/Developer/CommandLineTools/
This works for me sudo xcode-select –switch /Library/Developer/CommandLineTools/
Use xcodebuild -quiet. According to the xcodebuild man page: -quiet : Do not print any output except for warnings and errors. Bonus: No other tools necessary! (Although I also like xcodebuild | xcpretty) I build with Travis CI, which complains after 4 MB of logs. This argument solved the problem.
An Xcode build from the command line looks like: xcodebuild -configuration ${BUILD_TYPE} -target ${TARGET_NAME} -arch ${CPU_ARCHITECTURE} -sdk ${SIMULATOR_OR_IOS_SDK} BUILD_TYPE is something like “Release” or “Debug” (those are the defaults, you may have added others to the project) TARGET_NAME is the name of the target you are building (by default the same name as your project) … Read more
project.xcworkspace is a directory of files describing the workspace or projects. Although some of the answers here indicate it is unnecessary and should be ignored for source control, I don’t agree, but it’s going to be highly dependent upon how you use your environment. Generally, the contents of the project.xcworkspace directory contains the contents.xcworkspacedata file, … Read more
There is an (as of yet undocumented) flag in xcodebuild: -UseModernBuildSystem=<value>. The value can be either 0 or NO to use the legacy (“original”) build system, or 1 or YES to use the new build system. For example: xcodebuild -workspace Foo.xcworkspace -scheme Bar -configuration Release -archivePath /path/to/Foo.xcarchive clean archive -UseModernBuildSystem=NO (-UseNewBuildSystem=<value> seems to work as … Read more
I basically run into the same issue using Jenkins CI and the Xcode Plugin. I ended up doing the build and codesigning stuff myself using xcodebuild. 0. Prerequisites In order to get the following steps done successfully, you need to have installed the necessary provisioning profiles and certificates. That means your code signing should already … Read more
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
If you type this: $> xcodebuild -showsdks it gives something like this: $> OS X SDKs: OS X 10.8 -sdk macosx10.8 OS X 10.9 -sdk macosx10.9 iOS SDKs: iOS 6.1 -sdk iphoneos6.1 iOS 7.0 -sdk iphoneos7.0 iOS Simulator SDKs: Simulator – iOS 6.0 -sdk iphonesimulator6.0 Simulator – iOS 6.1 -sdk iphonesimulator6.1 Simulator – iOS 7.0 … Read more
You are definitely on the right track with respect to the .xcscheme file — I had this problem appear while setting up my own projects! For posterity, or at least anyone getting here from a search, here are two versions of things — the “I’m busy, so just the facts please” version and a more … Read more