Skip to content

build-script-helper.py broken because swiftc returns permission denied #85464

@PRESIDENT810

Description

@PRESIDENT810

Description

Caused by this

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -print-target-info
error: permissionDenied

Reproduction

l/Users/kainzhong/GitHub/swift-project/swift-driver/Utilities/build-script-helper.py build --package-path /Users/kainzhong/GitHub/swift-project/swift-driver --build-path /Users/kainzhong/GitHub/swift-project/build/Ninja-DebugAssert/earlyswiftdriver-macosx-arm64 --configuration debug --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr --ninja-bin /opt/homebrew/bin/ninja --cmake-bin /opt/homebrew/bin/cmake --local_compiler_build
--- build-script-helper.py: error: Command '['/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc', '-print-target-info']' returned non-zero exit status 1.

Expected behavior

The build script should just work

Environment

swiftc --version
swift-driver version: 1.127.14.1 Apple Swift version 6.2.1 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
Target: arm64-apple-macosx15.0

xcode-select -p
/Applications/Xcode.app/Contents/Developer

xcode-select -version
xcode-select version 2410.

Using Xcode 26 from App Store

Additional information

I have to run it using sudo and then use chmod to change the ownership of build folder to myself

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.triage neededThis issue needs more specific labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions