Build Information
Successful build of SwiftYFinance, reference 2.0.0 (bcc81f
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 10:37:07 UTC.
Swift 6 data race errors: 5
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/alexdremov/SwiftYFinance.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexdremov/SwiftYFinance
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at bcc81f5 Update README.md
Cloned https://github.com/alexdremov/SwiftYFinance.git
Revision (git rev-parse @):
bcc81f5648e6bd189f7a0fdb97ddaf70dff8133f
SUCCESS checkout https://github.com/alexdremov/SwiftYFinance.git at 2.0.0
Fetching https://github.com/SwiftyJSON/SwiftyJSON.git
Fetching https://github.com/Alamofire/Alamofire.git
[1/6114] Fetching swiftyjson
[1163/35909] Fetching swiftyjson, alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (3.19s)
Fetched https://github.com/SwiftyJSON/SwiftyJSON.git from cache (3.19s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.2.0 (0.67s)
Computing version for https://github.com/SwiftyJSON/SwiftyJSON.git
Computed https://github.com/SwiftyJSON/SwiftyJSON.git at 4.3.0 (0.63s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.2.0
Creating working copy for https://github.com/SwiftyJSON/SwiftyJSON.git
Working copy of https://github.com/SwiftyJSON/SwiftyJSON.git resolved at 4.3.0
========================================
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": "swiftyfinance",
"name": "SwiftYFinance",
"url": "https://github.com/alexdremov/SwiftYFinance.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftYFinance",
"dependencies": [
{
"identity": "swiftyjson",
"name": "SwiftyJSON",
"url": "https://github.com/SwiftyJSON/SwiftyJSON.git",
"version": "4.3.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftyJSON",
"dependencies": [
]
},
{
"identity": "alamofire",
"name": "Alamofire",
"url": "https://github.com/Alamofire/Alamofire.git",
"version": "5.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Alamofire",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/alexdremov/SwiftYFinance.git
[1/1176] Fetching swiftyfinance
Fetched https://github.com/alexdremov/SwiftYFinance.git from cache (1.40s)
Fetching https://github.com/Alamofire/Alamofire.git from cache
Fetching https://github.com/SwiftyJSON/SwiftyJSON.git from cache
Fetched https://github.com/SwiftyJSON/SwiftyJSON.git from cache (0.69s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (0.69s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.2.0 (0.03s)
Computing version for https://github.com/SwiftyJSON/SwiftyJSON.git
Computed https://github.com/SwiftyJSON/SwiftyJSON.git at 4.3.0 (0.02s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.2.0
Creating working copy for https://github.com/alexdremov/SwiftYFinance.git
Working copy of https://github.com/alexdremov/SwiftYFinance.git resolved at 2.0.0 (bcc81f5)
Creating working copy for https://github.com/SwiftyJSON/SwiftyJSON.git
Working copy of https://github.com/SwiftyJSON/SwiftyJSON.git resolved at 4.3.0
warning: '.resolve-product-dependencies': dependency 'swiftyfinance' is not used by any target
Found 2 product dependencies
- SwiftyJSON
- Alamofire
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/alexdremov/SwiftYFinance.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/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/39] Compiling Alamofire NetworkReachabilityManager.swift
[6/39] Compiling Alamofire Notifications.swift
[7/39] Compiling Alamofire OperationQueue+Alamofire.swift
[8/39] Compiling Alamofire ParameterEncoder.swift
[9/42] Emitting module SwiftyJSON
[10/42] Compiling SwiftyJSON SwiftyJSON.swift
[11/42] Compiling Alamofire StringEncoding+Alamofire.swift
[12/42] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[13/42] Compiling Alamofire URLEncodedFormEncoder.swift
[14/42] Compiling Alamofire ServerTrustEvaluation.swift
[15/42] Compiling Alamofire Session.swift
[16/42] Compiling Alamofire SessionDelegate.swift
[17/42] Emitting module Alamofire
[18/42] Compiling Alamofire HTTPHeaders.swift
[19/42] Compiling Alamofire HTTPMethod.swift
[20/42] Compiling Alamofire MultipartFormData.swift
[21/42] Compiling Alamofire MultipartUpload.swift
[22/42] Compiling Alamofire ResponseSerialization.swift
[23/42] Compiling Alamofire Result+Alamofire.swift
[24/42] Compiling Alamofire RetryPolicy.swift
[25/42] Compiling Alamofire RequestInterceptor.swift
[26/42] Compiling Alamofire RequestTaskMap.swift
[27/42] Compiling Alamofire Response.swift
[28/42] Compiling Alamofire AFError.swift
[29/42] Compiling Alamofire Alamofire.swift
[30/42] Compiling Alamofire AlamofireExtended.swift
[31/42] Compiling Alamofire AuthenticationInterceptor.swift
[32/42] Compiling Alamofire ParameterEncoding.swift
[33/42] Compiling Alamofire Protected.swift
[34/42] Compiling Alamofire RedirectHandler.swift
[35/42] Compiling Alamofire Request.swift
[36/42] Compiling Alamofire CachedResponseHandler.swift
[37/42] Compiling Alamofire Combine.swift
[38/42] Compiling Alamofire DispatchQueue+Alamofire.swift
[39/42] Compiling Alamofire EventMonitor.swift
[40/42] Compiling Alamofire URLRequest+Alamofire.swift
[41/42] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[42/42] Compiling Alamofire Validation.swift
[43/61] Compiling SwiftYFinance YFinanceResponseError.swift
[44/61] Compiling SwiftYFinance StringSearch.swift
[45/61] Compiling SwiftYFinance RequestError.swift
[46/61] Compiling SwiftYFinance URLGenerationError.swift
[47/62] Compiling SwiftYFinance YFNewsSearchResult.swift
[48/62] Compiling SwiftYFinance YFQuoteSearchResult.swift
[49/62] Compiling SwiftYFinance RecommendationTrend.swift
[50/62] Compiling SwiftYFinance StockChartData.swift
[51/62] Compiling SwiftYFinance SummaryDetail.swift
[52/62] Compiling SwiftYFinance SummaryProfile.swift
[53/62] Compiling SwiftYFinance QuoteType.swift
[54/62] Compiling SwiftYFinance RecentStockData.swift
[55/62] Compiling SwiftYFinance Price.swift
[56/62] Compiling SwiftYFinance QuoteSummarySelection.swift
[57/62] Emitting module SwiftYFinance
/Users/admin/builder/spi-builder-workspace/Sources/Processing/SwiftYFinance.swift:20:16: warning: static property 'crumb' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | The framework fetches it during the first use.
19 | */
20 | static var crumb: String = ""
| |- warning: static property 'crumb' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'crumb' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'crumb' 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
21 | static var cookies: String = ""
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Processing/SwiftYFinance.swift:21:16: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | */
20 | static var crumb: String = ""
21 | static var cookies: String = ""
| |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cookies' 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
22 |
23 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Processing/SwiftYFinance.swift:27:16: warning: static property 'cacheCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | By changing url with this parameter, the app expects uncached response.
26 | */
27 | static var cacheCounter: Int = 0
| |- warning: static property 'cacheCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cacheCounter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cacheCounter' 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
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Processing/SwiftYFinance.swift:32:16: warning: static property 'headers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | The headers to use in all requests
31 | */
32 | static var headers: HTTPHeaders = [
| |- warning: static property 'headers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'headers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'headers' 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
33 | "Accept": "*/*",
34 | "Pragma": "no-cache",
/Users/admin/builder/spi-builder-workspace/Sources/Processing/SwiftYFinance.swift:46:16: warning: static property 'session' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | - Note: it is crucial as without httpShouldSetCookies parameter, sometemes, Yahoo sends invalid cookies that are saved. Then, all consequent requests corrupt.
45 | */
46 | static var session: Session = {
| |- warning: static property 'session' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'session' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'session' 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
47 | let configuration = Session.default.sessionConfiguration
48 | // configuration.waitsForConnectivity = false
[58/62] Compiling SwiftYFinance CalendarEvents.swift
[59/62] Compiling SwiftYFinance ChartTimeInterval.swift
[60/62] Compiling SwiftYFinance IdentifierSummary.swift
[61/62] Compiling SwiftYFinance IndexTrend.swift
[62/62] Compiling SwiftYFinance SwiftYFinance.swift
/Users/admin/builder/spi-builder-workspace/Sources/Processing/SwiftYFinance.swift:20:16: warning: static property 'crumb' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | The framework fetches it during the first use.
19 | */
20 | static var crumb: String = ""
| |- warning: static property 'crumb' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'crumb' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'crumb' 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
21 | static var cookies: String = ""
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Processing/SwiftYFinance.swift:21:16: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | */
20 | static var crumb: String = ""
21 | static var cookies: String = ""
| |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cookies' 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
22 |
23 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Processing/SwiftYFinance.swift:27:16: warning: static property 'cacheCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | By changing url with this parameter, the app expects uncached response.
26 | */
27 | static var cacheCounter: Int = 0
| |- warning: static property 'cacheCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cacheCounter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cacheCounter' 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
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Processing/SwiftYFinance.swift:32:16: warning: static property 'headers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | The headers to use in all requests
31 | */
32 | static var headers: HTTPHeaders = [
| |- warning: static property 'headers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'headers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'headers' 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
33 | "Accept": "*/*",
34 | "Pragma": "no-cache",
/Users/admin/builder/spi-builder-workspace/Sources/Processing/SwiftYFinance.swift:46:16: warning: static property 'session' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | - Note: it is crucial as without httpShouldSetCookies parameter, sometemes, Yahoo sends invalid cookies that are saved. Then, all consequent requests corrupt.
45 | */
46 | static var session: Session = {
| |- warning: static property 'session' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'session' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'session' 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
47 | let configuration = Session.default.sessionConfiguration
48 | // configuration.waitsForConnectivity = false
Build complete! (24.79s)
Build complete.
{
"dependencies" : [
{
"identity" : "swiftyjson",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftyJSON/SwiftyJSON.git"
},
{
"identity" : "alamofire",
"requirement" : {
"exact" : [
"5.2.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/Alamofire/Alamofire.git"
}
],
"manifest_display_name" : "SwiftYFinance",
"name" : "SwiftYFinance",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "2.0"
},
{
"name" : "tvos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "SwiftYFinance",
"targets" : [
"SwiftYFinance"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftYFinanceTests",
"module_type" : "SwiftTarget",
"name" : "SwiftYFinanceTests",
"path" : "Tests/SwiftYFinanceTests",
"product_dependencies" : [
"SwiftyJSON",
"Alamofire"
],
"sources" : [
"StockInfoTests.swift"
],
"target_dependencies" : [
"SwiftYFinance"
],
"type" : "test"
},
{
"c99name" : "SwiftYFinance",
"module_type" : "SwiftTarget",
"name" : "SwiftYFinance",
"path" : "Sources",
"product_dependencies" : [
"SwiftyJSON",
"Alamofire"
],
"product_memberships" : [
"SwiftYFinance"
],
"sources" : [
"DataTypes/CalendarEvents.swift",
"DataTypes/ChartTimeInterval.swift",
"DataTypes/IdentifierSummary.swift",
"DataTypes/IndexTrend.swift",
"DataTypes/Price.swift",
"DataTypes/QuoteSummarySelection.swift",
"DataTypes/QuoteType.swift",
"DataTypes/RecentStockData.swift",
"DataTypes/RecommendationTrend.swift",
"DataTypes/StockChartData.swift",
"DataTypes/SummaryDetail.swift",
"DataTypes/SummaryProfile.swift",
"DataTypes/YFNewsSearchResult.swift",
"DataTypes/YFQuoteSearchResult.swift",
"Exceptions/RequestError.swift",
"Exceptions/URLGenerationError.swift",
"Exceptions/YFinanceResponseError.swift",
"Processing/StringSearch.swift",
"Processing/SwiftYFinance.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.