Build Information
Successful build of smoldot-swift, reference main (9d4a9b
), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 00:58:10 UTC.
Swift 6 data race errors: 0
Build Command
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
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/finsig/smoldot-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/finsig/smoldot-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 9d4a9b1 Update README.md
Cloned https://github.com/finsig/smoldot-swift.git
Revision (git rev-parse @):
9d4a9b15fe449f44b792091247c56947163732b6
SUCCESS checkout https://github.com/finsig/smoldot-swift.git at main
Fetching https://github.com/finsig/json-rpc2
[1/42] Fetching json-rpc2
Fetched https://github.com/finsig/json-rpc2 from cache (0.60s)
Computing version for https://github.com/finsig/json-rpc2
Computed https://github.com/finsig/json-rpc2 at 0.1.1 (1.57s)
Fetching https://github.com/finsig/json
[1/26] Fetching json
Fetched https://github.com/finsig/json from cache (0.63s)
Computing version for https://github.com/finsig/json
Computed https://github.com/finsig/json at 0.1.0 (1.22s)
Creating working copy for https://github.com/finsig/json
Working copy of https://github.com/finsig/json resolved at 0.1.0
Creating working copy for https://github.com/finsig/json-rpc2
Working copy of https://github.com/finsig/json-rpc2 resolved at 0.1.1
Downloading binary artifact https://github.com/finsig/smoldot-swift/releases/download/v0.1.0/smoldot.xcframework.zip
[17896/65790399] Downloading https://github.com/finsig/smoldot-swift/releases/download/v0.1.0/smoldot.xcframework.zip
Downloaded https://github.com/finsig/smoldot-swift/releases/download/v0.1.0/smoldot.xcframework.zip (3.72s)
========================================
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": "smoldot-swift",
"name": "smoldot-swift",
"url": "https://github.com/finsig/smoldot-swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/smoldot-swift",
"dependencies": [
{
"identity": "json-rpc2",
"name": "json-rpc2",
"url": "https://github.com/finsig/json-rpc2",
"version": "0.1.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/json-rpc2",
"dependencies": [
{
"identity": "json",
"name": "json",
"url": "https://github.com/finsig/json",
"version": "0.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/json",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/finsig/smoldot-swift.git
[1/489] Fetching smoldot-swift
Fetched https://github.com/finsig/smoldot-swift.git from cache (1.18s)
Fetching https://github.com/finsig/json-rpc2 from cache
Fetched https://github.com/finsig/json-rpc2 from cache (0.40s)
Computing version for https://github.com/finsig/json-rpc2
Computed https://github.com/finsig/json-rpc2 at 0.1.1 (0.45s)
Fetching https://github.com/finsig/json from cache
Fetched https://github.com/finsig/json from cache (0.40s)
Computing version for https://github.com/finsig/json
Computed https://github.com/finsig/json at 0.1.0 (0.46s)
Creating working copy for https://github.com/finsig/json-rpc2
Working copy of https://github.com/finsig/json-rpc2 resolved at 0.1.1
Creating working copy for https://github.com/finsig/json
Working copy of https://github.com/finsig/json resolved at 0.1.0
Creating working copy for https://github.com/finsig/smoldot-swift.git
Working copy of https://github.com/finsig/smoldot-swift.git resolved at main (9d4a9b1)
Fetching binary artifact https://github.com/finsig/smoldot-swift/releases/download/v0.1.0/smoldot.xcframework.zip from cache
Fetched https://github.com/finsig/smoldot-swift/releases/download/v0.1.0/smoldot.xcframework.zip from cache (2.52s)
warning: '.resolve-product-dependencies': dependency 'smoldot-swift' is not used by any target
Found 1 product dependencies
- json-rpc2
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/finsig/smoldot-swift.git
https://github.com/finsig/smoldot-swift.git
{
"dependencies" : [
{
"identity" : "json-rpc2",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/finsig/json-rpc2"
}
],
"manifest_display_name" : "smoldot-swift",
"name" : "smoldot-swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "SmoldotSwift",
"targets" : [
"SmoldotSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "smoldot",
"module_type" : "BinaryTarget",
"name" : "smoldot",
"path" : "remote/archive/smoldot.xcframework.zip",
"product_memberships" : [
"SmoldotSwift"
],
"sources" : [
],
"type" : "binary"
},
{
"c99name" : "SmoldotSwiftTests",
"module_type" : "SwiftTarget",
"name" : "SmoldotSwiftTests",
"path" : "Tests/SmoldotSwiftTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/kusama.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/polkadot.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/rococo.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/westend.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"SmoldotSwiftTests.swift"
],
"target_dependencies" : [
"SmoldotSwift"
],
"type" : "test"
},
{
"c99name" : "SmoldotSwift",
"module_type" : "SwiftTarget",
"name" : "SmoldotSwift",
"path" : "Sources/SmoldotSwift",
"product_dependencies" : [
"JSONRPC2"
],
"product_memberships" : [
"SmoldotSwift"
],
"sources" : [
"Chain+Specification.swift",
"Chain.swift",
"Client.swift",
"ClientError.swift",
"JSONObject.swift",
"JSONRPC2Request.swift",
"SmoldotSwift.swift"
],
"target_dependencies" : [
"CSmoldot"
],
"type" : "library"
},
{
"c99name" : "CSmoldot",
"module_type" : "ClangTarget",
"name" : "CSmoldot",
"path" : "Sources/CSmoldot",
"product_memberships" : [
"SmoldotSwift"
],
"sources" : [
"bridge.c"
],
"target_dependencies" : [
"smoldot"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
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/6] Write sources
[2/6] Copying libsmoldot_c_ffi.a
[4/6] Compiling CSmoldot bridge.c
[5/6] Write swift-version-2F0A5646E1D333AE.txt
[7/10] Emitting module JSON
[8/10] Compiling JSON Primitive.swift
[9/10] Compiling JSON JSON.swift
[10/10] Compiling JSON Object.swift
[11/20] Emitting module JSONRPC2
[12/20] Compiling JSONRPC2 Batch.swift
[13/21] Compiling JSONRPC2 JSONRPC2Error.swift
[14/21] Compiling JSONRPC2 Request.swift
[15/21] Compiling JSONRPC2 JSONRPC2.swift
[16/21] Compiling JSONRPC2 Notification.swift
[17/21] Compiling JSONRPC2 JSONRPC2ErrorCode.swift
[18/21] Compiling JSONRPC2 JSONRPCVersion.swift
[19/21] Compiling JSONRPC2 Identifier.swift
[20/21] Compiling JSONRPC2 RequestParameters.swift
[21/21] Compiling JSONRPC2 Response.swift
[22/29] Compiling SmoldotSwift JSONRPC2Request.swift
[23/29] Compiling SmoldotSwift SmoldotSwift.swift
[24/29] Compiling SmoldotSwift ClientError.swift
[25/29] Compiling SmoldotSwift JSONObject.swift
[26/29] Compiling SmoldotSwift Client.swift
/Users/admin/builder/spi-builder-workspace/Sources/SmoldotSwift/Client.swift:102:27: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
100 |
101 | AsyncThrowingStream<String,Error>(String.self, bufferingPolicy: bufferingPolicy, { continuation in
102 | Task.detached {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
103 | while (true) {
104 | guard let id = chain.id else {
| `- note: closure captures 'chain' which is accessible to code in the current task
105 | throw ClientError.chainNotFound
106 | }
[27/29] Compiling SmoldotSwift Chain.swift
[28/29] Emitting module SmoldotSwift
[29/29] Compiling SmoldotSwift Chain+Specification.swift
Build complete! (14.71s)
Build complete.
{
"dependencies" : [
{
"identity" : "json-rpc2",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/finsig/json-rpc2"
}
],
"manifest_display_name" : "smoldot-swift",
"name" : "smoldot-swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "SmoldotSwift",
"targets" : [
"SmoldotSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "smoldot",
"module_type" : "BinaryTarget",
"name" : "smoldot",
"path" : "remote/archive/smoldot.xcframework.zip",
"product_memberships" : [
"SmoldotSwift"
],
"sources" : [
],
"type" : "binary"
},
{
"c99name" : "SmoldotSwiftTests",
"module_type" : "SwiftTarget",
"name" : "SmoldotSwiftTests",
"path" : "Tests/SmoldotSwiftTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/kusama.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/polkadot.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/rococo.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/westend.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"SmoldotSwiftTests.swift"
],
"target_dependencies" : [
"SmoldotSwift"
],
"type" : "test"
},
{
"c99name" : "SmoldotSwift",
"module_type" : "SwiftTarget",
"name" : "SmoldotSwift",
"path" : "Sources/SmoldotSwift",
"product_dependencies" : [
"JSONRPC2"
],
"product_memberships" : [
"SmoldotSwift"
],
"sources" : [
"Chain+Specification.swift",
"Chain.swift",
"Client.swift",
"ClientError.swift",
"JSONObject.swift",
"JSONRPC2Request.swift",
"SmoldotSwift.swift"
],
"target_dependencies" : [
"CSmoldot"
],
"type" : "library"
},
{
"c99name" : "CSmoldot",
"module_type" : "ClangTarget",
"name" : "CSmoldot",
"path" : "Sources/CSmoldot",
"product_memberships" : [
"SmoldotSwift"
],
"sources" : [
"bridge.c"
],
"target_dependencies" : [
"smoldot"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.