Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

version arguments incompatible with Apple’s xcodebuild #319

Open
therealbnut opened this issue Jun 18, 2020 · 0 comments
Open

version arguments incompatible with Apple’s xcodebuild #319

therealbnut opened this issue Jun 18, 2020 · 0 comments

Comments

@therealbnut
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant