Skip to content

[SR-13441] build-script fails if xcode-select points to a path that includes spaces #55883

@swift-ci

Description

@swift-ci
Previous ID SR-13441
Radar rdar://67659538
Original Reporter davidungar (JIRA User)
Type Bug
Environment

master branch, SHA: e2a1862

Xcode beta 5

Big Sur

Additional Detail from JIRA
Votes 1
Component/s
Labels Bug
Assignee None
Priority Medium

md5: d06e51cef719192e8e29a2da093833bf

duplicates:

  • SR-13634 build-script fails using ninja when the build directory is in a path that contain spaces.

relates to:

  • SR-13634 build-script fails using ninja when the build directory is in a path that contain spaces.

Issue Description:

We use build-script to build the Swift compiler, and the README file also points external users to it. In order for it to work, `xcode-select` must point to an appropriate Xcode, which currently is a beta. When downloading a newer beta and unpacking the xip❓ file, it is easy to get a name with a space in it, e.g. "Xcode-beta 1". However, if you point xcode-select to an Xcode app with a space in the name, build-script fails:

CMake Error at /usr/local/Cellar/cmake/3.18.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find Python3 (missing: Interpreter)

Reason given by package:
Interpreter: Cannot run the interpreter ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions