The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ZTUserDefault, reference main (f59456), with Swift 6.0 for macOS (SPM) on 14 Jul 2025 20:39:12 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build 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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/willonboy/ZTUserDefault.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.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'
BUILD FAILURE 6.0 macosSpm