Build Information
Failed to build ZTUserDefault, reference main (f59456), with Swift 6.1 for macOS (SPM) on 14 Jul 2025 20:41:16 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/willonboy/ZTUserDefault.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/willonboy/ZTUserDefault
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f594565 opt code
Cloned https://github.com/willonboy/ZTUserDefault.git
Revision (git rev-parse @):
f594565ee5ef7a93bc4d1bae7d4c744e3b975f21
SUCCESS checkout https://github.com/willonboy/ZTUserDefault.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "ztuserdefault",
"name": "ZTUserDefault",
"url": "https://github.com/willonboy/ZTUserDefault.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ZTUserDefault",
"dependencies": [
]
}
]
}
Fetching https://github.com/willonboy/ZTUserDefault.git
[1/109] Fetching ztuserdefault
Fetched https://github.com/willonboy/ZTUserDefault.git from cache (0.65s)
Creating working copy for https://github.com/willonboy/ZTUserDefault.git
Working copy of https://github.com/willonboy/ZTUserDefault.git resolved at main (f594565)
warning: '.resolve-product-dependencies': dependency 'ztuserdefault' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/willonboy/ZTUserDefault.git
https://github.com/willonboy/ZTUserDefault.git
{
"dependencies" : [
],
"manifest_display_name" : "ZTUserDefault",
"name" : "ZTUserDefault",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "ZTUserDefault",
"targets" : [
"ZTUserDefault"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5.2"
],
"targets" : [
{
"c99name" : "ZTUserDefault",
"module_type" : "SwiftTarget",
"name" : "ZTUserDefault",
"path" : "Sources/ZTUserDefault",
"product_memberships" : [
"ZTUserDefault"
],
"sources" : [
"ZTUserDefault.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module ZTUserDefault
<unknown>:0: error: invalid value '5.2' in '-swift-version 5.2'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/ZTUserDefault/ZTUserDefault.swift:11:12: warning: var 'ZTUserDefaultDebug' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import Combine
10 |
11 | public var ZTUserDefaultDebug:Bool = false
| |- warning: var 'ZTUserDefaultDebug' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ZTUserDefaultDebug' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ZTUserDefaultDebug' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | @propertyWrapper
[4/4] Compiling ZTUserDefault ZTUserDefault.swift
<unknown>:0: error: invalid value '5.2' in '-swift-version 5.2'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
/Users/admin/builder/spi-builder-workspace/Sources/ZTUserDefault/ZTUserDefault.swift:11:12: warning: var 'ZTUserDefaultDebug' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import Combine
10 |
11 | public var ZTUserDefaultDebug:Bool = false
| |- warning: var 'ZTUserDefaultDebug' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ZTUserDefaultDebug' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ZTUserDefaultDebug' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | @propertyWrapper
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module ZTUserDefault
<unknown>:0: error: invalid value '5.2' in '-swift-version 5.2'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
[3/3] Compiling ZTUserDefault ZTUserDefault.swift
<unknown>:0: error: invalid value '5.2' in '-swift-version 5.2'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5', '6'
BUILD FAILURE 6.1 macosSpm