Build Information
Successful build of ReviewKit, reference main (6cf791
), with Swift 6.0 for macOS (SPM) on 18 Dec 2024 14:37:24 UTC.
Swift 6 data race errors: 3
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.59.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/FlineDev/ReviewKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/FlineDev/ReviewKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6cf7911 Add basic CI check using current macOS runner
Cloned https://github.com/FlineDev/ReviewKit.git
Revision (git rev-parse @):
6cf7911ecf14ced415b12f50344f9a5a68049d2f
SUCCESS checkout https://github.com/FlineDev/ReviewKit.git at main
========================================
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.91s)
Creating working copy for https://github.com/FlineDev/ReviewKit.git
Working copy of https://github.com/FlineDev/ReviewKit.git resolved at main (6cf7911)
warning: '.resolve-product-dependencies': dependency 'reviewkit' 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/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" : "12.0"
},
{
"name" : "macos",
"version" : "10.14"
},
{
"name" : "maccatalyst",
"version" : "14.0"
},
{
"name" : "visionos",
"version" : "1.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.9"
}
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/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/6] Compiling ReviewKit ReviewCriteria.swift
[4/6] Compiling ReviewKit PositiveEvent.swift
[5/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: annotate 'criteria' 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
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: annotate 'enabledInDebugBuilds' 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
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: annotate 'positiveEvents' 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
53 | .array(forKey: "ReviewKit.positiveEvents")?
54 | .compactMap { $0 as? String }
[6/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: annotate 'criteria' 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
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: annotate 'enabledInDebugBuilds' 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
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: annotate 'positiveEvents' 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
53 | .array(forKey: "ReviewKit.positiveEvents")?
54 | .compactMap { $0 as? String }
Build complete! (10.17s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ReviewKit",
"name" : "ReviewKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.14"
},
{
"name" : "maccatalyst",
"version" : "14.0"
},
{
"name" : "visionos",
"version" : "1.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.9"
}
Done.