Build Information
Failed to build AXSwift 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/tmandry/AXSwift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tmandry/AXSwift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e18a184 No longer force casting attribute values to prevent a crash when the value doesn't match the expected type
Cloned https://github.com/tmandry/AXSwift.git
Revision (git rev-parse @):
e18a18453d135ad45809a384ee5139e05ea52def
SUCCESS checkout https://github.com/tmandry/AXSwift.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/tmandry/AXSwift.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/12] Write sources
[3/12] Write AXSwiftObserverExample-entitlement.plist
[4/12] Write AXSwiftExample-entitlement.plist
[5/12] Write swift-version-6F35C1178C84523A.txt
error: compile command failed due to signal 6 (use -v to see invocation)
[7/20] Compiling AXSwift SystemWideElement.swift
/Users/admin/builder/spi-builder-workspace/Sources/SystemWideElement.swift:5:12: warning: var 'systemWideElement' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// A singleton for the system-wide element.
5 | public var systemWideElement = SystemWideElement()
| |- warning: var 'systemWideElement' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'systemWideElement' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'systemWideElement' 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
6 |
7 | /// A `UIElement` for the system-wide accessibility element, which can be used to retrieve global,
[8/20] Compiling AXSwift UIElement.swift
/Users/admin/builder/spi-builder-workspace/Sources/UIElement.swift:62:13: warning: reference to var 'kAXTrustedCheckOptionPrompt' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
60 | open class func isProcessTrusted(withPrompt showPrompt: Bool = false) -> Bool {
61 | let options = [
62 | kAXTrustedCheckOptionPrompt.takeUnretainedValue() as String: showPrompt as CFBoolean
| `- warning: reference to var 'kAXTrustedCheckOptionPrompt' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
63 | ]
64 | return AXIsProcessTrustedWithOptions(options as CFDictionary)
ApplicationServices.kAXTrustedCheckOptionPrompt:2:12: note: var declared here
1 | @available(macOS 10.9, *)
2 | public var kAXTrustedCheckOptionPrompt: Unmanaged<CFString>
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SystemWideElement.swift:5:12: warning: var 'systemWideElement' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// A singleton for the system-wide element.
5 | public var systemWideElement = SystemWideElement()
| |- warning: var 'systemWideElement' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'systemWideElement' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'systemWideElement' 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
6 |
7 | /// A `UIElement` for the system-wide accessibility element, which can be used to retrieve global,
[9/20] Compiling AXSwift Constants.swift
[10/20] Compiling AXSwift AXSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/AXSwift.swift:5:21: warning: reference to var 'kAXTrustedCheckOptionPrompt' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
3 | @discardableResult
4 | public func checkIsProcessTrusted(prompt: Bool = false) -> Bool {
5 | let promptKey = kAXTrustedCheckOptionPrompt.takeUnretainedValue() as String
| `- warning: reference to var 'kAXTrustedCheckOptionPrompt' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
6 | let opts = [promptKey: prompt] as CFDictionary
7 | return AXIsProcessTrustedWithOptions(opts)
ApplicationServices.kAXTrustedCheckOptionPrompt:2:12: note: var declared here
1 | @available(macOS 10.9, *)
2 | public var kAXTrustedCheckOptionPrompt: Unmanaged<CFString>
| `- note: var declared here
[11/20] Compiling AXSwift Observer.swift
[12/20] Compiling AXSwift Application.swift
Assertion failed: (!ED->getClangDecl() && "clang decls shouldn't be re-exported"), function getErrorDomainStringForObjC, file SwiftNameTranslation.cpp, line 63.
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/AXSwift.swift /Users/admin/builder/spi-builder-workspace/Sources/Application.swift /Users/admin/builder/spi-builder-workspace/Sources/Constants.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/Error.swift /Users/admin/builder/spi-builder-workspace/Sources/Observer.swift /Users/admin/builder/spi-builder-workspace/Sources/SystemWideElement.swift /Users/admin/builder/spi-builder-workspace/Sources/UIElement.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/AXSwift.build/Error.d -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/AXSwift.build/Error.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 4 -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 AXSwift -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/AXSwift.build/Error.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 4.1.50
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/Users/admin/builder/spi-builder-workspace/Sources/Error.swift")
4. While silgen emitFunction SIL function "@$sSo7AXErrorV7AXSwiftE14_nsErrorDomainSSvgZ".
for getter for _nsErrorDomain (in module 'AXSwift')
5. While evaluating request TypeCheckFunctionBodyRequest(AXSwift.(file).AXError extension._)
6. While evaluating request ParseAbstractFunctionBodyRequest(AXSwift.(file).AXError extension._)
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 0x0000000107c1bbf0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x0000000107c1a3bc llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x0000000107c1c238 SignalHandler(int) + 304
3 libsystem_platform.dylib 0x000000018584da24 _sigtramp + 56
4 libsystem_pthread.dylib 0x000000018581dcc0 pthread_kill + 288
5 libsystem_c.dylib 0x0000000185729a40 abort + 180
6 libsystem_c.dylib 0x0000000185728d30 err + 0
7 swift-frontend 0x00000001081b1814 swift::objc_translation::printSwiftEnumElemNameInObjC(swift::EnumElementDecl const*, llvm::raw_ostream&, swift::Identifier) (.cold.1) + 0
8 swift-frontend 0x000000010408ffb8 swift::objc_translation::printSwiftEnumElemNameInObjC(swift::EnumElementDecl const*, llvm::raw_ostream&, swift::Identifier) + 0
9 swift-frontend 0x000000010391304c deriveBodyBridgedNSError_printAsObjCEnum_nsErrorDomain(swift::AbstractFunctionDecl*, void*) + 116
10 swift-frontend 0x0000000103c1692c swift::ParseAbstractFunctionBodyRequest::evaluate(swift::Evaluator&, swift::AbstractFunctionDecl*) const + 280
11 swift-frontend 0x0000000103ef1ea0 swift::ParseAbstractFunctionBodyRequest::OutputType swift::Evaluator::getResultUncached<swift::ParseAbstractFunctionBodyRequest, swift::ParseAbstractFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::ParseAbstractFunctionBodyRequest>(swift::Evaluator&, swift::ParseAbstractFunctionBodyRequest, swift::ParseAbstractFunctionBodyRequest::OutputType)::'lambda'()>(swift::ParseAbstractFunctionBodyRequest const&, swift::ParseAbstractFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::ParseAbstractFunctionBodyRequest>(swift::Evaluator&, swift::ParseAbstractFunctionBodyRequest, swift::ParseAbstractFunctionBodyRequest::OutputType)::'lambda'()) + 268
12 swift-frontend 0x0000000103ef1ca0 swift::ParseAbstractFunctionBodyRequest::OutputType swift::Evaluator::getResultCached<swift::ParseAbstractFunctionBodyRequest, swift::ParseAbstractFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::ParseAbstractFunctionBodyRequest>(swift::Evaluator&, swift::ParseAbstractFunctionBodyRequest, swift::ParseAbstractFunctionBodyRequest::OutputType)::'lambda'(), (void*)0>(swift::ParseAbstractFunctionBodyRequest const&, swift::ParseAbstractFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::ParseAbstractFunctionBodyRequest>(swift::Evaluator&, swift::ParseAbstractFunctionBodyRequest, swift::ParseAbstractFunctionBodyRequest::OutputType)::'lambda'()) + 128
13 swift-frontend 0x0000000103e609e8 swift::AbstractFunctionDecl::getBody(bool) const + 288
14 swift-frontend 0x0000000103e60624 swift::AbstractFunctionDecl::getMacroExpandedBody() const + 84
15 swift-frontend 0x0000000103aad218 swift::TypeCheckFunctionBodyRequest::evaluate(swift::Evaluator&, swift::AbstractFunctionDecl*) const + 272
16 swift-frontend 0x0000000103ef34f8 swift::TypeCheckFunctionBodyRequest::OutputType swift::Evaluator::getResultUncached<swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckFunctionBodyRequest>(swift::Evaluator&, swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType)::'lambda'()>(swift::TypeCheckFunctionBodyRequest const&, swift::TypeCheckFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckFunctionBodyRequest>(swift::Evaluator&, swift::TypeCheckFunctionBodyRequest, swift::TypeCheckFunctionBodyRequest::OutputType)::'lambda'()) + 240
17 swift-frontend 0x0000000103e60b2c swift::AbstractFunctionDecl::getTypecheckedBody() const + 120
18 swift-frontend 0x0000000102e34eb8 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) + 376
19 swift-frontend 0x0000000102da73c8 swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) + 6324
20 swift-frontend 0x0000000102da825c swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) + 252
21 swift-frontend 0x0000000102da5adc swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 196
22 swift-frontend 0x0000000102ebb41c SILGenExtension::visitFuncDecl(swift::FuncDecl*) + 172
23 swift-frontend 0x0000000103e4b9b4 swift::AbstractStorageDecl::visitExpectedOpaqueAccessors(llvm::function_ref<void (swift::AccessorKind)>) const + 68
24 swift-frontend 0x0000000103e4b958 swift::AbstractStorageDecl::visitEmittedAccessors(llvm::function_ref<void (swift::AccessorDecl*)>) const + 160
25 swift-frontend 0x0000000102daa2d4 swift::Lowering::SILGenModule::visitEmittedAccessors(swift::AbstractStorageDecl*, llvm::function_ref<void (swift::AccessorDecl*)>) + 48
26 swift-frontend 0x0000000102ebb238 SILGenExtension::visitVarDecl(swift::VarDecl*) + 252
27 swift-frontend 0x0000000102eb75c0 SILGenExtension::emitExtension(swift::ExtensionDecl*) + 180
28 swift-frontend 0x0000000102eb7500 swift::Lowering::SILGenModule::visitExtensionDecl(swift::ExtensionDecl*) + 24
29 swift-frontend 0x0000000102daab74 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const + 880
30 swift-frontend 0x0000000102ea4c7c 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
31 swift-frontend 0x0000000102db0468 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
32 swift-frontend 0x0000000102dab478 swift::performASTLowering(swift::FileUnit&, swift::Lowering::TypeConverter&, swift::SILOptions const&, swift::IRGenOptions const*) + 96
33 swift-frontend 0x0000000102794f00 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 604
34 swift-frontend 0x00000001027a6248 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 160
35 swift-frontend 0x0000000102797590 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 708
36 swift-frontend 0x00000001027964fc swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2388
37 swift-frontend 0x00000001025b03b0 swift::mainEntry(int, char const**) + 3096
38 dyld 0x000000018549d0e0 start + 2360
BUILD FAILURE 6.0 macosSpm