Build Information
Successful build of smoldot-swift, reference main (9d4a9b
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 08:06:48 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.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.69s)
Computing version for https://github.com/finsig/json-rpc2
Computed https://github.com/finsig/json-rpc2 at 0.1.1 (3.29s)
Fetching https://github.com/finsig/json
[1/26] Fetching json
Fetched https://github.com/finsig/json from cache (0.65s)
Computing version for https://github.com/finsig/json
Computed https://github.com/finsig/json at 0.1.0 (0.74s)
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
[32750/65790399] Downloading https://github.com/finsig/smoldot-swift/releases/download/v0.1.0/smoldot.xcframework.zip
Downloading binary artifact 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 (4.32s)
========================================
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.24s)
Fetching https://github.com/finsig/json-rpc2 from cache
Fetched https://github.com/finsig/json-rpc2 from cache (0.48s)
Computing version for https://github.com/finsig/json-rpc2
Computed https://github.com/finsig/json-rpc2 at 0.1.1 (0.02s)
Fetching https://github.com/finsig/json from cache
Fetched https://github.com/finsig/json from cache (0.47s)
Computing version for https://github.com/finsig/json
Computed https://github.com/finsig/json at 0.1.0 (0.02s)
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
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.70s)
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.0
Building package at path: $PWD
https://github.com/finsig/smoldot-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/6] Write sources
[3/6] Copying libsmoldot_c_ffi.a
[4/6] Write swift-version--7754E27361AE5C74.txt
[5/6] Compiling CSmoldot bridge.c
[7/10] Compiling JSON Primitive.swift
[8/10] Compiling JSON Object.swift
[9/10] Emitting module JSON
[10/10] Compiling JSON JSON.swift
[11/20] Compiling JSONRPC2 Batch.swift
[12/20] Compiling JSONRPC2 JSONRPC2.swift
[13/21] Compiling JSONRPC2 JSONRPC2Error.swift
[14/21] Compiling JSONRPC2 JSONRPC2ErrorCode.swift
[15/21] Compiling JSONRPC2 Notification.swift
[16/21] Compiling JSONRPC2 Identifier.swift
[17/21] Compiling JSONRPC2 RequestParameters.swift
[18/21] Compiling JSONRPC2 Request.swift
[19/21] Emitting module JSONRPC2
[20/21] Compiling JSONRPC2 JSONRPCVersion.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 Chain+Specification.swift
[27/29] Emitting module SmoldotSwift
[28/29] Compiling SmoldotSwift Chain.swift
[29/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 | }
Build complete! (20.32s)
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.