Build Information
Failed to build ZTUserDefault, reference 2.0.1 (3f6fc4), with Swift 6.2 for macOS (SPM) on 23 Jun 2025 12:37:00 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.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: 2.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/willonboy/ZTUserDefault
* tag 2.0.1 -> FETCH_HEAD
HEAD is now at 3f6fc4a update readme
Cloned https://github.com/willonboy/ZTUserDefault.git
Revision (git rev-parse @):
3f6fc4a7393a1a940c0fc783954366899a542c04
SUCCESS checkout https://github.com/willonboy/ZTUserDefault.git at 2.0.1
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/willonboy/ZTUserDefault.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.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'
[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:92:49: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
90 | #if DEBUG
91 | if ZTUserDefaultDebug {
92 | print("[ZTUserDefault] get \(key):\(value ?? defaultValue)")
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
93 | }
94 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/ZTUserDefault/ZTUserDefault.swift:110:57: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
108 | #if DEBUG
109 | if ZTUserDefaultDebug {
110 | print("[ZTUserDefault] set \(key):\(newValue)")
| |- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
| |- note: use 'String(describing:)' to silence this warning
| `- note: provide a default value to avoid this warning
111 | }
112 | #endif
BUILD FAILURE 6.2 macosSpm