Build Information
Successful build of ReviewKit, reference 1.1.0 (6160d5
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 03:11:44 UTC.
Swift 6 data race errors: 3
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/FlineDev/ReviewKit.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/FlineDev/ReviewKit
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at 6160d53 Add more flexibility with requestReviewIfCriteriaMet() & enabledInDebugBuilds = false
Cloned https://github.com/FlineDev/ReviewKit.git
Revision (git rev-parse @):
6160d53e480a8b12fd73312d4e49d45b82f58efd
SUCCESS checkout https://github.com/FlineDev/ReviewKit.git at 1.1.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": "reviewkit",
"name": "ReviewKit",
"url": "https://github.com/FlineDev/ReviewKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ReviewKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/FlineDev/ReviewKit.git
[1/136] Fetching reviewkit
Fetched https://github.com/FlineDev/ReviewKit.git from cache (0.74s)
Creating working copy for https://github.com/FlineDev/ReviewKit.git
Working copy of https://github.com/FlineDev/ReviewKit.git resolved at 1.1.0 (6160d53)
warning: '.resolve-product-dependencies': dependency 'reviewkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/FlineDev/ReviewKit.git
https://github.com/FlineDev/ReviewKit.git
{
"dependencies" : [
],
"manifest_display_name" : "ReviewKit",
"name" : "ReviewKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "10.14"
},
{
"name" : "maccatalyst",
"version" : "14.0"
}
],
"products" : [
{
"name" : "ReviewKit",
"targets" : [
"ReviewKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ReviewKit",
"module_type" : "SwiftTarget",
"name" : "ReviewKit",
"path" : "Sources/ReviewKit",
"product_memberships" : [
"ReviewKit"
],
"sources" : [
"PositiveEvent.swift",
"ReviewCriteria.swift",
"ReviewKit.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/6] Compiling ReviewKit ReviewCriteria.swift
[4/6] Compiling ReviewKit ReviewKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReviewKit/ReviewKit.swift:7:22: warning: static property 'criteria' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 | public enum ReviewKit {
6 | /// The minimum criteria to be met to request a review from a user.
7 | public static var criteria: ReviewCriteria = ReviewCriteria(minPositiveEventsWeight: 3, eventsExpireAfterDays: 14)
| |- warning: static property 'criteria' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'criteria' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'criteria' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | /// Turns off the review request inside an `#if DEBUG`. On by default (for testing purposes).
/Users/admin/builder/spi-builder-workspace/Sources/ReviewKit/ReviewKit.swift:10:22: warning: static property 'enabledInDebugBuilds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Turns off the review request inside an `#if DEBUG`. On by default (for testing purposes).
10 | public static var enabledInDebugBuilds: Bool = true
| |- warning: static property 'enabledInDebugBuilds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabledInDebugBuilds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enabledInDebugBuilds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | /// Records a positive event and requests a review if the criteria are met. Use when a user has completed a workflow and is less likely to be annoyed.
/Users/admin/builder/spi-builder-workspace/Sources/ReviewKit/ReviewKit.swift:52:15: warning: static property 'positiveEvents' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | static var positiveEvents: [PositiveEvent] = UserDefaults.standard
| |- warning: static property 'positiveEvents' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'positiveEvents' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'positiveEvents' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | .array(forKey: "ReviewKit.positiveEvents")?
54 | .compactMap { $0 as? String }
[5/6] Emitting module ReviewKit
/Users/admin/builder/spi-builder-workspace/Sources/ReviewKit/ReviewKit.swift:7:22: warning: static property 'criteria' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 | public enum ReviewKit {
6 | /// The minimum criteria to be met to request a review from a user.
7 | public static var criteria: ReviewCriteria = ReviewCriteria(minPositiveEventsWeight: 3, eventsExpireAfterDays: 14)
| |- warning: static property 'criteria' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'criteria' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'criteria' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | /// Turns off the review request inside an `#if DEBUG`. On by default (for testing purposes).
/Users/admin/builder/spi-builder-workspace/Sources/ReviewKit/ReviewKit.swift:10:22: warning: static property 'enabledInDebugBuilds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Turns off the review request inside an `#if DEBUG`. On by default (for testing purposes).
10 | public static var enabledInDebugBuilds: Bool = true
| |- warning: static property 'enabledInDebugBuilds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabledInDebugBuilds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enabledInDebugBuilds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | /// Records a positive event and requests a review if the criteria are met. Use when a user has completed a workflow and is less likely to be annoyed.
/Users/admin/builder/spi-builder-workspace/Sources/ReviewKit/ReviewKit.swift:52:15: warning: static property 'positiveEvents' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | static var positiveEvents: [PositiveEvent] = UserDefaults.standard
| |- warning: static property 'positiveEvents' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'positiveEvents' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'positiveEvents' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | .array(forKey: "ReviewKit.positiveEvents")?
54 | .compactMap { $0 as? String }
[6/6] Compiling ReviewKit PositiveEvent.swift
Build complete! (7.19s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ReviewKit",
"name" : "ReviewKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "10.14"
},
{
"name" : "maccatalyst",
"version" : "14.0"
}
],
"products" : [
{
"name" : "ReviewKit",
"targets" : [
"ReviewKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ReviewKit",
"module_type" : "SwiftTarget",
"name" : "ReviewKit",
"path" : "Sources/ReviewKit",
"product_memberships" : [
"ReviewKit"
],
"sources" : [
"PositiveEvent.swift",
"ReviewCriteria.swift",
"ReviewKit.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.