This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build DidUpdate with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PimCoumans/DidUpdate.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/PimCoumans/DidUpdate
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 67371b7 Improved ObserverBuilder support
Cloned https://github.com/PimCoumans/DidUpdate.git
Revision (git rev-parse @):
67371b7cc3914094d429480f779444d0a7f2d869
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/PimCoumans/DidUpdate.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/PimCoumans/DidUpdate.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/15] Compiling DidUpdate ObservableState.swift
/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Protocols/ObservableState.swift:68:13: warning: let 'key' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer' may have shared mutable state; this is an error in the Swift 6 language mode
 66 | }
 67 |
 68 | private let key = malloc(1)!
    |             |- warning: let 'key' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'key' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 | extension ObservableState {
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
error: compile command failed due to signal 6 (use -v to see invocation)
SIL verification failed: can't upcast to same type: UI->getType() != UI->getOperand()->getType()
Verifying instruction:
     %4 = load [take] %2 : $*WeakValueProxy<Value> // user: %5
->   %5 = upcast %4 : $WeakValueProxy<Value> to $WeakValueProxy<Value> // users: %13, %6
     %6 = begin_borrow %5 : $WeakValueProxy<Value> // users: %10, %9
     destroy_value %5 : $WeakValueProxy<Value>    // id: %13
In function:
// key path getter for WeakValueProxy.currentValue : <A>Self
sil shared [thunk] [ossa] @$s9DidUpdate14WeakValueProxyC07currentD0xvplACyxGXDTK : $@convention(keypath_accessor_getter) <Value> (@in_guaranteed WeakValueProxy<Value>) -> @out Value {
// %0                                             // user: %11
// %1                                             // user: %3
bb0(%0 : $*Value, %1 : $*WeakValueProxy<Value>):
  %2 = alloc_stack $WeakValueProxy<Value>         // users: %14, %4, %3
  copy_addr %1 to [init] %2 : $*WeakValueProxy<Value> // id: %3
  %4 = load [take] %2 : $*WeakValueProxy<Value>   // user: %5
  %5 = upcast %4 : $WeakValueProxy<Value> to $WeakValueProxy<Value> // users: %13, %6
  %6 = begin_borrow %5 : $WeakValueProxy<Value>   // users: %10, %9
  %7 = alloc_stack $Value                         // users: %12, %11, %9
  // function_ref WeakValueProxy.currentValue.getter
  %8 = function_ref @$s9DidUpdate14WeakValueProxyC07currentD0xvg : $@convention(method) <τ_0_0> (@guaranteed WeakValueProxy<τ_0_0>) -> @out τ_0_0 // user: %9
  %9 = apply %8<Value>(%7, %6) : $@convention(method) <τ_0_0> (@guaranteed WeakValueProxy<τ_0_0>) -> @out τ_0_0
  end_borrow %6 : $WeakValueProxy<Value>          // id: %10
  copy_addr [take] %7 to [init] %0 : $*Value      // id: %11
  dealloc_stack %7 : $*Value                      // id: %12
  destroy_value %5 : $WeakValueProxy<Value>       // id: %13
  dealloc_stack %2 : $*WeakValueProxy<Value>      // id: %14
  %15 = tuple ()                                  // user: %16
  return %15 : $()                                // id: %16
} // end sil function '$s9DidUpdate14WeakValueProxyC07currentD0xvplACyxGXDTK'
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Observers/StateObserver.swift /Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Observers/StateValueObserver.swift "/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Property Wrappers/ExternallyUpdating.swift" "/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Property Wrappers/ObservedState.swift" "/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Property Wrappers/ObservedValue.swift" "/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Property Wrappers/ReadOnlyProxy+compound.swift" "/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Property Wrappers/ReadOnlyProxy.swift" "/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Property Wrappers/StoredValue.swift" "/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Property Wrappers/ValueProxy.swift" "/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Property Wrappers/WeakReadOnlyProxy.swift" -primary-file "/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Property Wrappers/WeakValueProxy.swift" /Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Protocols/ObservableState.swift /Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Protocols/UpdateObservable.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DidUpdate.build/WeakValueProxy.d -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DidUpdate.build/WeakValueProxy.swiftdeps -target arm64-apple-macosx10.13 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -I /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Modules -I /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -stats-output-dir .stats -strict-concurrency=complete -empty-abi-descriptor -resource-dir /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace -Xcc -isysroot -Xcc /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -Xcc -F -Xcc /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name DidUpdate -plugin-path /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/local/lib/swift/host/plugins -target-sdk-version 14.4 -target-sdk-name macosx14.4 -external-plugin-path /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DidUpdate.build/WeakValueProxy.swift.o -index-store-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/index/store -index-system-modules
1.	Apple Swift version 6.0-dev (LLVM 4b0b1f9e1a69523, Swift 91a3abcf816bc36)
2.	Compiling with effective version 5.10
3.	While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Property Wrappers/WeakValueProxy.swift")
4.	While verifying SIL function "@$s9DidUpdate14WeakValueProxyC07currentD0xvplACyxGXDTK".
 for <<debugloc at "<compiler-generated>":0:0>>Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x0000000107703bf0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x00000001077023bc llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x0000000107704238 SignalHandler(int) + 304
3  libsystem_platform.dylib 0x0000000185ef9a24 _sigtramp + 56
4  libsystem_pthread.dylib  0x0000000185ec9cc0 pthread_kill + 288
5  libsystem_c.dylib        0x0000000185dd5a40 abort + 180
6  swift-frontend           0x00000001031e67b8 swift::SILOptions::~SILOptions() + 0
7  swift-frontend           0x00000001031ec690 swift::SILVisitorBase<(anonymous namespace)::SILVerifier, void>::visitSILBasicBlock(swift::SILBasicBlock*) + 5984
8  swift-frontend           0x00000001031eae30 (anonymous namespace)::SILVerifier::visitSILBasicBlock(swift::SILBasicBlock*) + 28
9  swift-frontend           0x00000001031e95c8 (anonymous namespace)::SILVerifier::visitSILFunction(swift::SILFunction*) + 10456
10 swift-frontend           0x00000001031e2bb0 swift::SILFunction::verify(swift::CalleeCache*, bool, bool, bool) const + 204
11 swift-frontend           0x00000001031e5d3c swift::SILModule::verify(swift::CalleeCache*, bool, bool) const + 192
12 swift-frontend           0x00000001031e5c14 swift::SILModule::verify(bool, bool) const + 140
13 swift-frontend           0x000000010288a47c swift::Lowering::SILGenModule::~SILGenModule() + 160
14 swift-frontend           0x0000000102893094 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const + 2192
15 swift-frontend           0x000000010298cc7c swift::SimpleRequest<swift::ASTLoweringRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) + 148
16 swift-frontend           0x0000000102898468 swift::ASTLoweringRequest::OutputType swift::Evaluator::getResultUncached<swift::ASTLoweringRequest, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()>(swift::ASTLoweringRequest const&, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()) + 340
17 swift-frontend           0x0000000102893478 swift::performASTLowering(swift::FileUnit&, swift::Lowering::TypeConverter&, swift::SILOptions const&, swift::IRGenOptions const*) + 96
18 swift-frontend           0x000000010227cf00 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 604
19 swift-frontend           0x000000010228e248 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 160
20 swift-frontend           0x000000010227f590 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 708
21 swift-frontend           0x000000010227e4fc swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2388
22 swift-frontend           0x00000001020983b0 swift::mainEntry(int, char const**) + 3096
23 dyld                     0x0000000185b490e0 start + 2360
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.