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

version arguments incompatible with Apple’s xcodebuild #319

@therealbnut

Description

@therealbnut

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions