Skip to content

xtool setup fails on linux mint #181

@GertieMeneer

Description

@GertieMeneer

Description

Xtool setup fails on linux mint:

xtool setup
Logged in.
- Apple ID: *icloud.com
- Team ID: *
- Token expiry: *
Now generating the Darwin SDK.

Please download Xcode from http://developer.apple.com/download/all/?q=Xcode
and enter the path to the downloaded Xcode.xip.

Path to Xcode.xip: xcode_1.xip
[Downloading toolset] 100%
[Extracting XIP] 100%
[Installing SDKs] 100%
[Cleaning up]
[Finalizing SDKs]
- iPhoneOS26.1.sdk
- iPhoneSimulator26.1.sdk
- MacOSX26.1.sdk
[Writing metadata]
Error: Error Domain=NSCocoaErrorDomain Code=512 "(null)"UserInfo={NSUserStringVariant=["Copy"], NSSourceFilePathErrorKey=/tmp/sh.xtool/tmp-DarwinSDKBuild-B32EEDB5-F534-411D-8574-3C6B4778202D/DarwinSDKBuild/darwin.artifactbundle/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/CxxStdlib.swiftmodule/arm64-apple-macos.swiftdoc, NSFilePath=/tmp/sh.xtool/tmp-DarwinSDKBuild-B32EEDB5-F534-411D-8574-3C6B4778202D/DarwinSDKBuild/darwin.artifactbundle/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/CxxStdlib.swiftmodule/arm64-apple-macos.swiftdoc, NSDestinationFilePath=/home/<username>/.swiftpm/swift-sdks/darwin.artifactbundle/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/CxxStdlib.swiftmodule/arm64-apple-macos.swiftdoc, NSURL=file:///tmp/sh.xtool/tmp-DarwinSDKBuild-B32EEDB5-F534-411D-8574-3C6B4778202D/DarwinSDKBuild/darwin.artifactbundle/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/CxxStdlib.swiftmodule/arm64-apple-macos.swiftdoc, NSUnderlyingError=Error Domain=NSPOSIXErrorDomain Code=22 "Invalid argument"}
Error: exit(1)

Environment

Host OS (macOS/Linux/WSL):
Linux Mint

Host OS version:
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=22.2
DISTRIB_CODENAME=zara
DISTRIB_DESCRIPTION="Linux Mint 22.2 Zara"
NAME="Linux Mint"
VERSION="22.2 (Zara)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 22.2"
VERSION_ID="22.2"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=zara
UBUNTU_CODENAME=noble

iOS device version:
iOS 26.1

Swift version:
Swift version 6.2.1 (swift-6.2.1-RELEASE)
Target: x86_64-unknown-linux-gnu

SDK version:
Error: Swift SDK with ID darwin, host triple x86_64-unknown-linux-gnu, and target triple arm64-apple-ios is not currently installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions