Build Information
Successful build of SwiftApiAdapter, reference main (0485cc
), with Swift 6.0 for macOS (SPM) on 31 Jan 2025 17:58:02 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RayKitajima/SwiftApiAdapter.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RayKitajima/SwiftApiAdapter
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 0485ccd feat: retrieve pageTitile in case .page
Cloned https://github.com/RayKitajima/SwiftApiAdapter.git
Revision (git rev-parse @):
0485ccd736edb8d1f361edb08343c26472258934
SUCCESS checkout https://github.com/RayKitajima/SwiftApiAdapter.git at main
Fetching https://github.com/SwiftyJSON/SwiftyJSON
Fetching https://github.com/scinfu/SwiftSoup
[1/3215] Fetching swiftsoup
[677/9342] Fetching swiftsoup, swiftyjson
Fetched https://github.com/SwiftyJSON/SwiftyJSON from cache (1.46s)
Fetched https://github.com/scinfu/SwiftSoup from cache (1.46s)
Computing version for https://github.com/SwiftyJSON/SwiftyJSON
Computed https://github.com/SwiftyJSON/SwiftyJSON at 5.0.2 (3.30s)
Computing version for https://github.com/scinfu/SwiftSoup
Computed https://github.com/scinfu/SwiftSoup at 2.7.2 (0.57s)
Creating working copy for https://github.com/scinfu/SwiftSoup
Working copy of https://github.com/scinfu/SwiftSoup resolved at 2.7.2
Creating working copy for https://github.com/SwiftyJSON/SwiftyJSON
Working copy of https://github.com/SwiftyJSON/SwiftyJSON resolved at 5.0.2
========================================
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": "swiftapiadapter",
"name": "SwiftApiAdapter",
"url": "https://github.com/RayKitajima/SwiftApiAdapter.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftApiAdapter",
"dependencies": [
{
"identity": "swiftsoup",
"name": "SwiftSoup",
"url": "https://github.com/scinfu/SwiftSoup",
"version": "2.7.7",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftSoup",
"dependencies": [
]
},
{
"identity": "swiftyjson",
"name": "SwiftyJSON",
"url": "https://github.com/SwiftyJSON/SwiftyJSON",
"version": "5.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftyJSON",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/RayKitajima/SwiftApiAdapter.git
[3/204] Fetching swiftapiadapter
Fetched https://github.com/RayKitajima/SwiftApiAdapter.git from cache (0.71s)
Fetching https://github.com/scinfu/SwiftSoup from cache
Fetching https://github.com/SwiftyJSON/SwiftyJSON from cache
Fetched https://github.com/scinfu/SwiftSoup from cache (0.45s)
Fetched https://github.com/SwiftyJSON/SwiftyJSON from cache (0.56s)
Computing version for https://github.com/SwiftyJSON/SwiftyJSON
Computed https://github.com/SwiftyJSON/SwiftyJSON at 5.0.2 (0.02s)
Computing version for https://github.com/scinfu/SwiftSoup
Computed https://github.com/scinfu/SwiftSoup at 2.7.7 (0.52s)
Creating working copy for https://github.com/RayKitajima/SwiftApiAdapter.git
Working copy of https://github.com/RayKitajima/SwiftApiAdapter.git resolved at main (0485ccd)
Creating working copy for https://github.com/scinfu/SwiftSoup
Working copy of https://github.com/scinfu/SwiftSoup resolved at 2.7.7
Creating working copy for https://github.com/SwiftyJSON/SwiftyJSON
Working copy of https://github.com/SwiftyJSON/SwiftyJSON resolved at 5.0.2
warning: '.resolve-product-dependencies': dependency 'swiftapiadapter' is not used by any target
Found 2 product dependencies
- SwiftSoup
- SwiftyJSON
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/RayKitajima/SwiftApiAdapter.git
https://github.com/RayKitajima/SwiftApiAdapter.git
{
"dependencies" : [
{
"identity" : "swiftsoup",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/scinfu/SwiftSoup"
},
{
"identity" : "swiftyjson",
"requirement" : {
"range" : [
{
"lower_bound" : "5.0.2",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftyJSON/SwiftyJSON"
}
],
"manifest_display_name" : "SwiftApiAdapter",
"name" : "SwiftApiAdapter",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "SwiftApiAdapter",
"targets" : [
"SwiftApiAdapter"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftApiAdapterTests",
"module_type" : "SwiftTarget",
"name" : "SwiftApiAdapterTests",
"path" : "Tests/SwiftApiAdapterTests",
"sources" : [
"ApiConnectorManagerTests.swift",
"ApiContentLoaderTests.swift",
"ApiContentTests.swift",
"ApiRequesterTests.swift"
],
"target_dependencies" : [
"SwiftApiAdapter"
],
"type" : "test"
},
{
"c99name" : "SwiftApiAdapter",
"module_type" : "SwiftTarget",
"name" : "SwiftApiAdapter",
"path" : "Sources/SwiftApiAdapter",
"product_dependencies" : [
"SwiftSoup",
"SwiftyJSON"
],
"product_memberships" : [
"SwiftApiAdapter"
],
"sources" : [
"Connector.swift",
"Loader.swift",
"Model.swift",
"Tools.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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 PrivacyInfo.xcprivacy
[2/6] Write sources
[4/6] Copying PrivacyInfo.xcprivacy
[5/6] Write swift-version-5BDAB9E9C0126B9D.txt
[7/64] Emitting module SwiftSoup
[8/69] Compiling SwiftSoup ArrayExt.swift
[9/69] Compiling SwiftSoup Attribute.swift
[10/69] Compiling SwiftSoup Attributes.swift
[11/69] Compiling SwiftSoup BinarySearch.swift
[12/69] Compiling SwiftSoup BooleanAttribute.swift
[13/69] Compiling SwiftSoup CharacterExt.swift
[14/69] Compiling SwiftSoup QueryParser.swift
[15/69] Compiling SwiftSoup SerializationException.swift
[16/69] Compiling SwiftSoup SimpleDictionary.swift
[17/69] Compiling SwiftSoup StreamReader.swift
[18/69] Compiling SwiftSoup String.swift
[19/69] Compiling SwiftSoup StringBuilder.swift
[20/69] Compiling SwiftSoup OrderedSet.swift
[21/69] Compiling SwiftSoup ParseError.swift
[22/69] Compiling SwiftSoup ParseErrorList.swift
[23/69] Compiling SwiftSoup ParseSettings.swift
[24/69] Compiling SwiftSoup Parser.swift
[25/69] Compiling SwiftSoup Pattern.swift
[26/69] Compiling SwiftSoup TokenQueue.swift
[27/69] Compiling SwiftSoup Tokeniser.swift
[28/69] Compiling SwiftSoup TokeniserState.swift
[29/69] Compiling SwiftSoup TreeBuilder.swift
[30/69] Compiling SwiftSoup UnfairLock.swift
[31/69] Compiling SwiftSoup UnicodeScalar.swift
[32/69] Compiling SwiftyJSON SwiftyJSON.swift
[33/69] Emitting module SwiftyJSON
[34/69] Compiling SwiftyJSON resource_bundle_accessor.swift
[35/69] Compiling SwiftSoup CssSelector.swift
[36/69] Compiling SwiftSoup DataNode.swift
[37/69] Compiling SwiftSoup DataUtil.swift
[38/69] Compiling SwiftSoup Document.swift
[39/69] Compiling SwiftSoup DocumentType.swift
[40/69] Compiling SwiftSoup Element.swift
[41/69] Compiling SwiftSoup StringUtil.swift
[42/69] Compiling SwiftSoup StructuralEvaluator.swift
[43/69] Compiling SwiftSoup SwiftSoup.swift
[44/69] Compiling SwiftSoup Tag.swift
[45/69] Compiling SwiftSoup TextNode.swift
[46/69] Compiling SwiftSoup Token.swift
[47/69] Compiling SwiftSoup HtmlTreeBuilderState.swift
[48/69] Compiling SwiftSoup HttpStatusException.swift
[49/69] Compiling SwiftSoup Mutex.swift
[50/69] Compiling SwiftSoup Node.swift
[51/69] Compiling SwiftSoup NodeTraversor.swift
[52/69] Compiling SwiftSoup NodeVisitor.swift
[53/69] Compiling SwiftSoup Validate.swift
[54/69] Compiling SwiftSoup Whitelist.swift
[55/69] Compiling SwiftSoup XmlDeclaration.swift
[56/69] Compiling SwiftSoup XmlTreeBuilder.swift
[57/69] Compiling SwiftSoup resource_bundle_accessor.swift
[58/69] Compiling SwiftSoup CharacterReader.swift
[59/69] Compiling SwiftSoup Cleaner.swift
[60/69] Compiling SwiftSoup Collector.swift
[61/69] Compiling SwiftSoup CombiningEvaluator.swift
[62/69] Compiling SwiftSoup Comment.swift
[63/69] Compiling SwiftSoup Connection.swift
[64/69] Compiling SwiftSoup Elements.swift
[65/69] Compiling SwiftSoup Entities.swift
[66/69] Compiling SwiftSoup Evaluator.swift
[67/69] Compiling SwiftSoup Exception.swift
[68/69] Compiling SwiftSoup FormElement.swift
[69/69] Compiling SwiftSoup HtmlTreeBuilder.swift
[70/74] Compiling SwiftApiAdapter Tools.swift
[71/74] Compiling SwiftApiAdapter Loader.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftApiAdapter/Connector.swift:9:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ApiConnectorManager' may have shared mutable state; this is an error in the Swift 6 language mode
6 | let DEFAULT_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
7 |
8 | public class ApiConnectorManager: ObservableObject {
| `- note: class 'ApiConnectorManager' does not conform to the 'Sendable' protocol
9 | public static let shared = ApiConnectorManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ApiConnectorManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
10 | private init(){}
11 |
[72/74] Compiling SwiftApiAdapter Connector.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftApiAdapter/Connector.swift:9:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ApiConnectorManager' may have shared mutable state; this is an error in the Swift 6 language mode
6 | let DEFAULT_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
7 |
8 | public class ApiConnectorManager: ObservableObject {
| `- note: class 'ApiConnectorManager' does not conform to the 'Sendable' protocol
9 | public static let shared = ApiConnectorManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ApiConnectorManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
10 | private init(){}
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftApiAdapter/Connector.swift:107:13: warning: capture of 'self' with non-sendable type 'ApiExecutionQueue' in a `@Sendable` closure
96 | }
97 |
98 | public class ApiExecutionQueue {
| `- note: class 'ApiExecutionQueue' does not conform to the 'Sendable' protocol
99 | private var dispatchQueue = DispatchQueue(label: "SwiftApiAdapter.ApiExecutionQueue")
100 | private var queue: [ApiRequest] = []
:
105 | }
106 | dispatchQueue.async {
107 | self.queue.append(request)
| `- warning: capture of 'self' with non-sendable type 'ApiExecutionQueue' in a `@Sendable` closure
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftApiAdapter/Connector.swift:107:31: warning: capture of 'request' with non-sendable type 'ApiRequest' in a `@Sendable` closure
64 | }
65 |
66 | public struct ApiRequest {
| `- note: consider making struct 'ApiRequest' conform to the 'Sendable' protocol
67 | let requestData: Data
68 | let continuation: CheckedContinuation<ApiResponse, Never>
:
105 | }
106 | dispatchQueue.async {
107 | self.queue.append(request)
| `- warning: capture of 'request' with non-sendable type 'ApiRequest' in a `@Sendable` closure
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftApiAdapter/Connector.swift:116:13: warning: capture of 'self' with non-sendable type 'ApiExecutionQueue' in a `@Sendable` closure
96 | }
97 |
98 | public class ApiExecutionQueue {
| `- note: class 'ApiExecutionQueue' does not conform to the 'Sendable' protocol
99 | private var dispatchQueue = DispatchQueue(label: "SwiftApiAdapter.ApiExecutionQueue")
100 | private var queue: [ApiRequest] = []
:
114 | }
115 | dispatchQueue.async {
116 | self.queue.insert(request, at: 0)
| `- warning: capture of 'self' with non-sendable type 'ApiExecutionQueue' in a `@Sendable` closure
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftApiAdapter/Connector.swift:116:31: warning: capture of 'request' with non-sendable type 'ApiRequest' in a `@Sendable` closure
64 | }
65 |
66 | public struct ApiRequest {
| `- note: consider making struct 'ApiRequest' conform to the 'Sendable' protocol
67 | let requestData: Data
68 | let continuation: CheckedContinuation<ApiResponse, Never>
:
114 | }
115 | dispatchQueue.async {
116 | self.queue.insert(request, at: 0)
| `- warning: capture of 'request' with non-sendable type 'ApiRequest' in a `@Sendable` closure
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftApiAdapter/Connector.swift:138:13: warning: capture of 'self' with non-sendable type 'ApiExecutionQueue' in a `@Sendable` closure
96 | }
97 |
98 | public class ApiExecutionQueue {
| `- note: class 'ApiExecutionQueue' does not conform to the 'Sendable' protocol
99 | private var dispatchQueue = DispatchQueue(label: "SwiftApiAdapter.ApiExecutionQueue")
100 | private var queue: [ApiRequest] = []
:
136 | func clear() {
137 | dispatchQueue.async {
138 | self.queue.removeAll()
| `- warning: capture of 'self' with non-sendable type 'ApiExecutionQueue' in a `@Sendable` closure
139 | }
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftApiAdapter/Connector.swift:289:13: warning: capture of 'goNextRequest' with non-sendable type '(() -> Void)?' in a `@Sendable` closure
287 | self.cumulativeExecuted += 1
288 | }
289 | goNextRequest?()
| |- warning: capture of 'goNextRequest' with non-sendable type '(() -> Void)?' in a `@Sendable` closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
290 | }
291 | task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftApiAdapter/Connector.swift:52:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
50 | public func initTransaction() {
51 | DispatchQueue.main.async {
52 | self.executor.cumulativeRequested = 0
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
53 | self.executor.cumulativeExecuted = 0
54 | }
[73/74] Emitting module SwiftApiAdapter
/Users/admin/builder/spi-builder-workspace/Sources/SwiftApiAdapter/Connector.swift:9:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ApiConnectorManager' may have shared mutable state; this is an error in the Swift 6 language mode
6 | let DEFAULT_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
7 |
8 | public class ApiConnectorManager: ObservableObject {
| `- note: class 'ApiConnectorManager' does not conform to the 'Sendable' protocol
9 | public static let shared = ApiConnectorManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ApiConnectorManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
10 | private init(){}
11 |
[74/74] Compiling SwiftApiAdapter Model.swift
Build complete! (23.17s)
warning: 'swiftsoup': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoMac.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Info.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfotvOS.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoWatchOS.plist
Build complete.
{
"dependencies" : [
{
"identity" : "swiftsoup",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/scinfu/SwiftSoup"
},
{
"identity" : "swiftyjson",
"requirement" : {
"range" : [
{
"lower_bound" : "5.0.2",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftyJSON/SwiftyJSON"
}
],
"manifest_display_name" : "SwiftApiAdapter",
"name" : "SwiftApiAdapter",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "SwiftApiAdapter",
"targets" : [
"SwiftApiAdapter"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftApiAdapterTests",
"module_type" : "SwiftTarget",
"name" : "SwiftApiAdapterTests",
"path" : "Tests/SwiftApiAdapterTests",
"sources" : [
"ApiConnectorManagerTests.swift",
"ApiContentLoaderTests.swift",
"ApiContentTests.swift",
"ApiRequesterTests.swift"
],
"target_dependencies" : [
"SwiftApiAdapter"
],
"type" : "test"
},
{
"c99name" : "SwiftApiAdapter",
"module_type" : "SwiftTarget",
"name" : "SwiftApiAdapter",
"path" : "Sources/SwiftApiAdapter",
"product_dependencies" : [
"SwiftSoup",
"SwiftyJSON"
],
"product_memberships" : [
"SwiftApiAdapter"
],
"sources" : [
"Connector.swift",
"Loader.swift",
"Model.swift",
"Tools.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.