Marcus Müller a.k.a. "Tethpub ZNeK"
crack-admin/coderâ„¢

xcodebuild commandline bug

21.08.2012

It took me almost 2 weeks to figure out, why xcodebuild wouldn't use commandline build settings given to it. There seems to be a subtle bug that prevents any settings from being set if there's no matching (empty will do) entry in IDESourceTreeDisplayNames for this setting.

In my case, this helps on each machine:

$ defaults write com.apple.dt.Xcode IDESourceTreeDisplayNames -dict-add CELEMONY_ROOT "" SHARED_PRECOMPS_DIR "" SYMROOT "" XCODE_ROOT ""

1 Kommentare
And it keeps getting better. Any setting in IDEApplicationwideBuildSettings can not be overridden on the command line, hence it's best to delete these settings altogether:

$ defaults delete com.apple.dt.Xcode IDEApplicationwideBuildSettings