Build Information
Successful build of KKBOXOpenAPISwift, reference 1.1.7 (91650c
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 08:37:02 UTC.
Swift 6 data race errors: 10
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/KKBOX/OpenAPI-Swift.git
Reference: 1.1.7
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/KKBOX/OpenAPI-Swift
* tag 1.1.7 -> FETCH_HEAD
HEAD is now at 91650c3 Bumps to 1.1.7.
Cloned https://github.com/KKBOX/OpenAPI-Swift.git
Revision (git rev-parse @):
91650c30e578854e1815a0119e6da8c735c02ba9
SUCCESS checkout https://github.com/KKBOX/OpenAPI-Swift.git at 1.1.7
========================================
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": "openapi-swift",
"name": "KKBOXOpenAPISwift",
"url": "https://github.com/KKBOX/OpenAPI-Swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OpenAPI-Swift",
"dependencies": [
]
}
]
}
Fetching https://github.com/KKBOX/OpenAPI-Swift.git
[1/796] Fetching openapi-swift
Fetched https://github.com/KKBOX/OpenAPI-Swift.git from cache (1.08s)
Creating working copy for https://github.com/KKBOX/OpenAPI-Swift.git
Working copy of https://github.com/KKBOX/OpenAPI-Swift.git resolved at 1.1.7 (91650c3)
warning: '.resolve-product-dependencies': dependency 'openapi-swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/KKBOX/OpenAPI-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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Compiling KKBOXOpenAPISwift KKBOXOpenAPIPrivateTypes.swift
[4/6] Compiling KKBOXOpenAPISwift KKBOXOpenAPITypes.swift
[5/6] Emitting module KKBOXOpenAPISwift
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:83:20: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | /// The desired search type.
77 | public struct KKSearchType: OptionSet {
| `- note: consider making struct 'KKSearchType' conform to the 'Sendable' protocol
78 | public init(rawValue: Int) {
79 | self.rawValue = rawValue
:
81 |
82 | public let rawValue: Int
83 | public static let none = KKSearchType(rawValue: 0)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
84 | /// Specify that we are searching for artists.
85 | public static let artist = KKSearchType(rawValue: 1 << 0)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:83:20: warning: static property 'none' produces an empty option set
81 |
82 | public let rawValue: Int
83 | public static let none = KKSearchType(rawValue: 0)
| |- warning: static property 'none' produces an empty option set
| `- note: use [] to silence this warning
84 | /// Specify that we are searching for artists.
85 | public static let artist = KKSearchType(rawValue: 1 << 0)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:85:20: warning: static property 'artist' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | /// The desired search type.
77 | public struct KKSearchType: OptionSet {
| `- note: consider making struct 'KKSearchType' conform to the 'Sendable' protocol
78 | public init(rawValue: Int) {
79 | self.rawValue = rawValue
:
83 | public static let none = KKSearchType(rawValue: 0)
84 | /// Specify that we are searching for artists.
85 | public static let artist = KKSearchType(rawValue: 1 << 0)
| |- warning: static property 'artist' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'artist' 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
86 | /// Specify that we are searching for albums.
87 | public static let album = KKSearchType(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:87:20: warning: static property 'album' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | /// The desired search type.
77 | public struct KKSearchType: OptionSet {
| `- note: consider making struct 'KKSearchType' conform to the 'Sendable' protocol
78 | public init(rawValue: Int) {
79 | self.rawValue = rawValue
:
85 | public static let artist = KKSearchType(rawValue: 1 << 0)
86 | /// Specify that we are searching for albums.
87 | public static let album = KKSearchType(rawValue: 1 << 1)
| |- warning: static property 'album' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'album' 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
88 | /// Specify that we are searching for tracks.
89 | public static let track = KKSearchType(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:89:20: warning: static property 'track' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | /// The desired search type.
77 | public struct KKSearchType: OptionSet {
| `- note: consider making struct 'KKSearchType' conform to the 'Sendable' protocol
78 | public init(rawValue: Int) {
79 | self.rawValue = rawValue
:
87 | public static let album = KKSearchType(rawValue: 1 << 1)
88 | /// Specify that we are searching for tracks.
89 | public static let track = KKSearchType(rawValue: 1 << 2)
| |- warning: static property 'track' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'track' 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
90 | /// Specify that we are searching for playlists.
91 | public static let playlist = KKSearchType(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:91:20: warning: static property 'playlist' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | /// The desired search type.
77 | public struct KKSearchType: OptionSet {
| `- note: consider making struct 'KKSearchType' conform to the 'Sendable' protocol
78 | public init(rawValue: Int) {
79 | self.rawValue = rawValue
:
89 | public static let track = KKSearchType(rawValue: 1 << 2)
90 | /// Specify that we are searching for playlists.
91 | public static let playlist = KKSearchType(rawValue: 1 << 3)
| |- warning: static property 'playlist' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'playlist' 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
92 |
93 | fileprivate func toString() -> String {
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:142:20: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
110 |
111 | /// The scope of your client ID.
112 | public struct KKScope: OptionSet, Codable {
| `- note: consider making struct 'KKScope' conform to the 'Sendable' protocol
113 | public init(rawValue: Int) {
114 | self.rawValue = rawValue
:
140 | public let rawValue: Int
141 | /// Your client does not request any additional permission.
142 | public static let none = KKScope(rawValue: 0)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
143 | /// Your client requests the permission to access user profiles.
144 | public static let userProfile = KKScope(rawValue: 1 << 0)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:142:20: warning: static property 'none' produces an empty option set
140 | public let rawValue: Int
141 | /// Your client does not request any additional permission.
142 | public static let none = KKScope(rawValue: 0)
| |- warning: static property 'none' produces an empty option set
| `- note: use [] to silence this warning
143 | /// Your client requests the permission to access user profiles.
144 | public static let userProfile = KKScope(rawValue: 1 << 0)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:144:20: warning: static property 'userProfile' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
110 |
111 | /// The scope of your client ID.
112 | public struct KKScope: OptionSet, Codable {
| `- note: consider making struct 'KKScope' conform to the 'Sendable' protocol
113 | public init(rawValue: Int) {
114 | self.rawValue = rawValue
:
142 | public static let none = KKScope(rawValue: 0)
143 | /// Your client requests the permission to access user profiles.
144 | public static let userProfile = KKScope(rawValue: 1 << 0)
| |- warning: static property 'userProfile' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userProfile' 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
145 | /// Your client requests the permission to access the territory where users are at.
146 | public static let userTerritory = KKScope(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:146:20: warning: static property 'userTerritory' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
110 |
111 | /// The scope of your client ID.
112 | public struct KKScope: OptionSet, Codable {
| `- note: consider making struct 'KKScope' conform to the 'Sendable' protocol
113 | public init(rawValue: Int) {
114 | self.rawValue = rawValue
:
144 | public static let userProfile = KKScope(rawValue: 1 << 0)
145 | /// Your client requests the permission to access the territory where users are at.
146 | public static let userTerritory = KKScope(rawValue: 1 << 1)
| |- warning: static property 'userTerritory' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userTerritory' 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
147 | /// Your client requests the permission to access the status of accounts.
148 | public static let userAccountStatus = KKScope(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:148:20: warning: static property 'userAccountStatus' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
110 |
111 | /// The scope of your client ID.
112 | public struct KKScope: OptionSet, Codable {
| `- note: consider making struct 'KKScope' conform to the 'Sendable' protocol
113 | public init(rawValue: Int) {
114 | self.rawValue = rawValue
:
146 | public static let userTerritory = KKScope(rawValue: 1 << 1)
147 | /// Your client requests the permission to access the status of accounts.
148 | public static let userAccountStatus = KKScope(rawValue: 1 << 2)
| |- warning: static property 'userAccountStatus' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userAccountStatus' 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
149 | /// Your client requests all permissions.
150 | public static let all: KKScope = [.userProfile, .userTerritory, .userAccountStatus]
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:150:20: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
110 |
111 | /// The scope of your client ID.
112 | public struct KKScope: OptionSet, Codable {
| `- note: consider making struct 'KKScope' conform to the 'Sendable' protocol
113 | public init(rawValue: Int) {
114 | self.rawValue = rawValue
:
148 | public static let userAccountStatus = KKScope(rawValue: 1 << 2)
149 | /// Your client requests all permissions.
150 | public static let all: KKScope = [.userProfile, .userTerritory, .userAccountStatus]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
151 |
152 | fileprivate func toString() -> String {
[6/6] Compiling KKBOXOpenAPISwift KKBOXOpenAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:83:20: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | /// The desired search type.
77 | public struct KKSearchType: OptionSet {
| `- note: consider making struct 'KKSearchType' conform to the 'Sendable' protocol
78 | public init(rawValue: Int) {
79 | self.rawValue = rawValue
:
81 |
82 | public let rawValue: Int
83 | public static let none = KKSearchType(rawValue: 0)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
84 | /// Specify that we are searching for artists.
85 | public static let artist = KKSearchType(rawValue: 1 << 0)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:83:20: warning: static property 'none' produces an empty option set
81 |
82 | public let rawValue: Int
83 | public static let none = KKSearchType(rawValue: 0)
| |- warning: static property 'none' produces an empty option set
| `- note: use [] to silence this warning
84 | /// Specify that we are searching for artists.
85 | public static let artist = KKSearchType(rawValue: 1 << 0)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:85:20: warning: static property 'artist' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | /// The desired search type.
77 | public struct KKSearchType: OptionSet {
| `- note: consider making struct 'KKSearchType' conform to the 'Sendable' protocol
78 | public init(rawValue: Int) {
79 | self.rawValue = rawValue
:
83 | public static let none = KKSearchType(rawValue: 0)
84 | /// Specify that we are searching for artists.
85 | public static let artist = KKSearchType(rawValue: 1 << 0)
| |- warning: static property 'artist' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'artist' 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
86 | /// Specify that we are searching for albums.
87 | public static let album = KKSearchType(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:87:20: warning: static property 'album' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | /// The desired search type.
77 | public struct KKSearchType: OptionSet {
| `- note: consider making struct 'KKSearchType' conform to the 'Sendable' protocol
78 | public init(rawValue: Int) {
79 | self.rawValue = rawValue
:
85 | public static let artist = KKSearchType(rawValue: 1 << 0)
86 | /// Specify that we are searching for albums.
87 | public static let album = KKSearchType(rawValue: 1 << 1)
| |- warning: static property 'album' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'album' 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
88 | /// Specify that we are searching for tracks.
89 | public static let track = KKSearchType(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:89:20: warning: static property 'track' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | /// The desired search type.
77 | public struct KKSearchType: OptionSet {
| `- note: consider making struct 'KKSearchType' conform to the 'Sendable' protocol
78 | public init(rawValue: Int) {
79 | self.rawValue = rawValue
:
87 | public static let album = KKSearchType(rawValue: 1 << 1)
88 | /// Specify that we are searching for tracks.
89 | public static let track = KKSearchType(rawValue: 1 << 2)
| |- warning: static property 'track' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'track' 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
90 | /// Specify that we are searching for playlists.
91 | public static let playlist = KKSearchType(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:91:20: warning: static property 'playlist' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
75 |
76 | /// The desired search type.
77 | public struct KKSearchType: OptionSet {
| `- note: consider making struct 'KKSearchType' conform to the 'Sendable' protocol
78 | public init(rawValue: Int) {
79 | self.rawValue = rawValue
:
89 | public static let track = KKSearchType(rawValue: 1 << 2)
90 | /// Specify that we are searching for playlists.
91 | public static let playlist = KKSearchType(rawValue: 1 << 3)
| |- warning: static property 'playlist' is not concurrency-safe because non-'Sendable' type 'KKSearchType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'playlist' 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
92 |
93 | fileprivate func toString() -> String {
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:142:20: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
110 |
111 | /// The scope of your client ID.
112 | public struct KKScope: OptionSet, Codable {
| `- note: consider making struct 'KKScope' conform to the 'Sendable' protocol
113 | public init(rawValue: Int) {
114 | self.rawValue = rawValue
:
140 | public let rawValue: Int
141 | /// Your client does not request any additional permission.
142 | public static let none = KKScope(rawValue: 0)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
143 | /// Your client requests the permission to access user profiles.
144 | public static let userProfile = KKScope(rawValue: 1 << 0)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:142:20: warning: static property 'none' produces an empty option set
140 | public let rawValue: Int
141 | /// Your client does not request any additional permission.
142 | public static let none = KKScope(rawValue: 0)
| |- warning: static property 'none' produces an empty option set
| `- note: use [] to silence this warning
143 | /// Your client requests the permission to access user profiles.
144 | public static let userProfile = KKScope(rawValue: 1 << 0)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:144:20: warning: static property 'userProfile' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
110 |
111 | /// The scope of your client ID.
112 | public struct KKScope: OptionSet, Codable {
| `- note: consider making struct 'KKScope' conform to the 'Sendable' protocol
113 | public init(rawValue: Int) {
114 | self.rawValue = rawValue
:
142 | public static let none = KKScope(rawValue: 0)
143 | /// Your client requests the permission to access user profiles.
144 | public static let userProfile = KKScope(rawValue: 1 << 0)
| |- warning: static property 'userProfile' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userProfile' 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
145 | /// Your client requests the permission to access the territory where users are at.
146 | public static let userTerritory = KKScope(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:146:20: warning: static property 'userTerritory' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
110 |
111 | /// The scope of your client ID.
112 | public struct KKScope: OptionSet, Codable {
| `- note: consider making struct 'KKScope' conform to the 'Sendable' protocol
113 | public init(rawValue: Int) {
114 | self.rawValue = rawValue
:
144 | public static let userProfile = KKScope(rawValue: 1 << 0)
145 | /// Your client requests the permission to access the territory where users are at.
146 | public static let userTerritory = KKScope(rawValue: 1 << 1)
| |- warning: static property 'userTerritory' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userTerritory' 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
147 | /// Your client requests the permission to access the status of accounts.
148 | public static let userAccountStatus = KKScope(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:148:20: warning: static property 'userAccountStatus' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
110 |
111 | /// The scope of your client ID.
112 | public struct KKScope: OptionSet, Codable {
| `- note: consider making struct 'KKScope' conform to the 'Sendable' protocol
113 | public init(rawValue: Int) {
114 | self.rawValue = rawValue
:
146 | public static let userTerritory = KKScope(rawValue: 1 << 1)
147 | /// Your client requests the permission to access the status of accounts.
148 | public static let userAccountStatus = KKScope(rawValue: 1 << 2)
| |- warning: static property 'userAccountStatus' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userAccountStatus' 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
149 | /// Your client requests all permissions.
150 | public static let all: KKScope = [.userProfile, .userTerritory, .userAccountStatus]
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:150:20: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
110 |
111 | /// The scope of your client ID.
112 | public struct KKScope: OptionSet, Codable {
| `- note: consider making struct 'KKScope' conform to the 'Sendable' protocol
113 | public init(rawValue: Int) {
114 | self.rawValue = rawValue
:
148 | public static let userAccountStatus = KKScope(rawValue: 1 << 2)
149 | /// Your client requests all permissions.
150 | public static let all: KKScope = [.userProfile, .userTerritory, .userAccountStatus]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'KKScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
151 |
152 | fileprivate func toString() -> String {
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:774:7: warning: capture of 'callback' with non-sendable type '(KKAPIResult<T>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
772 | let customError = NSError(domain: KKErrorDomain, code: decodedError.error.code, userInfo: [NSLocalizedDescriptionKey: decodedError.error.message ?? ""])
773 | DispatchQueue.main.async {
774 | callback(.error(customError))
| |- warning: capture of 'callback' with non-sendable type '(KKAPIResult<T>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
775 | }
776 | return
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:798:6: warning: capture of 'callback' with non-sendable type '(KKAPIResult<Data>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
796 | if let error = error {
797 | DispatchQueue.main.async {
798 | callback(.error(error))
| |- warning: capture of 'callback' with non-sendable type '(KKAPIResult<Data>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
799 | }
800 | return
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:806:6: warning: capture of 'callback' with non-sendable type '(KKAPIResult<Data>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
804 | let error = NSError(domain: KKErrorDomain, code: code, userInfo: [NSLocalizedDescriptionKey: "API call failed with status code \(code)"])
805 | DispatchQueue.main.async {
806 | callback(.error(error))
| |- warning: capture of 'callback' with non-sendable type '(KKAPIResult<Data>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
807 | }
808 | return
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:813:6: warning: capture of 'callback' with non-sendable type '(KKAPIResult<Data>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
811 | guard let data = data else {
812 | DispatchQueue.main.async {
813 | callback(.error(KKBOXOpenAPIError.invalidResponse))
| |- warning: capture of 'callback' with non-sendable type '(KKAPIResult<Data>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
814 | }
815 | return
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:818:5: warning: capture of 'callback' with non-sendable type '(KKAPIResult<Data>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
816 | }
817 | DispatchQueue.main.async {
818 | callback(.success(data))
| |- warning: capture of 'callback' with non-sendable type '(KKAPIResult<Data>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
819 | }
820 | }
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:840:80: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
838 | request.setValue(KKUserAgent, forHTTPHeaderField: "User-Agent")
839 | request.httpBody = data
840 | let task = URLSession.shared.dataTask(with: request, completionHandler: self.connectionHandler(callback: callback))
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
841 | task.resume()
842 | return task
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:853:80: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
851 | request.setValue(KKUserAgent, forHTTPHeaderField: "User-Agent")
852 | request.setValue("Bearer \(accessToken.accessToken)", forHTTPHeaderField: "Authorization")
853 | let task = URLSession.shared.dataTask(with: request, completionHandler: self.connectionHandler(callback: callback))
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
854 | task.resume()
855 | return task
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:774:7: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
772 | let customError = NSError(domain: KKErrorDomain, code: decodedError.error.code, userInfo: [NSLocalizedDescriptionKey: decodedError.error.message ?? ""])
773 | DispatchQueue.main.async {
774 | callback(.error(customError))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
775 | }
776 | return
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:798:6: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
796 | if let error = error {
797 | DispatchQueue.main.async {
798 | callback(.error(error))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
799 | }
800 | return
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:806:6: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
804 | let error = NSError(domain: KKErrorDomain, code: code, userInfo: [NSLocalizedDescriptionKey: "API call failed with status code \(code)"])
805 | DispatchQueue.main.async {
806 | callback(.error(error))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
807 | }
808 | return
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:818:5: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
816 | }
817 | DispatchQueue.main.async {
818 | callback(.success(data))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
819 | }
820 | }
/Users/admin/builder/spi-builder-workspace/Sources/KKBOXOpenAPISwift/KKBOXOpenAPI.swift:813:6: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
811 | guard let data = data else {
812 | DispatchQueue.main.async {
813 | callback(.error(KKBOXOpenAPIError.invalidResponse))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
814 | }
815 | return
Build complete! (6.91s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "KKBOXOpenAPISwift",
"name" : "KKBOXOpenAPISwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "KKBOXOpenAPISwift",
"targets" : [
"KKBOXOpenAPISwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "KKBOXOpenAPISwiftTests",
"module_type" : "SwiftTarget",
"name" : "KKBOXOpenAPISwiftTests",
"path" : "Tests/KKBOXOpenAPISwiftTests",
"sources" : [
"OpenAPI_SwiftTests.swift"
],
"target_dependencies" : [
"KKBOXOpenAPISwift"
],
"type" : "test"
},
{
"c99name" : "KKBOXOpenAPISwift",
"module_type" : "SwiftTarget",
"name" : "KKBOXOpenAPISwift",
"path" : "Sources/KKBOXOpenAPISwift",
"product_memberships" : [
"KKBOXOpenAPISwift"
],
"sources" : [
"KKBOXOpenAPI.swift",
"KKBOXOpenAPIPrivateTypes.swift",
"KKBOXOpenAPITypes.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.