Skip to content

xcode version check is broken #378

@kazzmir

Description

@kazzmir

The version check in check_reqs.js uses string comparison rather than something like semver, which causes newer versions of xcode to be considered out of date.

With xcode 10.1 or 10.2 the following check fails:

if (os.release() >= '15.0.0' && ver < XCODEBUILD_MIN_VERSION) {

'10.1' < '7.0'
$ node
> let a = '10.1'
undefined
> let b = '7.0'
undefined
> a < b
true

The version check should compare the version properly by comparing the major version first, then the minor version if necessary.

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