facebookarchive / xcbuild

Xcode-compatible build tool.
Other
2k stars 190 forks source link

version arguments incompatible with Apple’s xcodebuild #319

Open therealbnut opened 4 years ago

therealbnut commented 4 years ago

Hey,

I’m using bazel, which uses xcodebuild to determine the system version of various sdks. Although with xcbuild installed (with nix) I get this error:

xcode_configure.bzl:89:9: Invoking xcodebuild failed, developer dir: /Applications/Xcode.app/Contents/Developer ,return code 1, stderr: error: missing argument value for argument -sdk

It’s calling:

xcrun xcodebuild -version -sdk

Apple’s xcodebuild doesn’t require an additional value after sdk. Without that setting it won’t output the SDKs, and the additional arguments just mean it outputs specific SDKs only.

I believe this error is invalidating the build cache of anything depending on that information every time I rebuild.