Build Information
Successful build of RaLog, reference master (06787f
), with Swift 6.0 for macOS (SPM) on 1 Apr 2025 10:31:53 UTC.
Swift 6 data race errors: 6
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/RakuyoKit/RaLog.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RakuyoKit/RaLog
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 06787f6 Merge branch release/1.8.1
Cloned https://github.com/RakuyoKit/RaLog.git
Revision (git rev-parse @):
06787f66caa8e80b953573edf146130b85e87bd4
SUCCESS checkout https://github.com/RakuyoKit/RaLog.git at master
Fetching https://github.com/RakuyoKit/swift.git
[1/2369] Fetching swift
Fetched https://github.com/RakuyoKit/swift.git from cache (0.91s)
Fetching https://github.com/apple/swift-argument-parser
[1/14793] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.53s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.43s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/RakuyoKit/swift.git
Working copy of https://github.com/RakuyoKit/swift.git resolved at release/1.4.0 (9cb218a)
[16375/28197168] Downloading https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.0/SwiftFormat.artifactbundle.zip
[5515630/39231213] Downloading https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.0/SwiftFormat.artifactbundle.zip, https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip
Downloading binary artifact https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.0/SwiftFormat.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip (1.42s)
Downloaded https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.0/SwiftFormat.artifactbundle.zip (2.30s)
========================================
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": "ralog",
"name": "RaLog",
"url": "https://github.com/RakuyoKit/RaLog.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RaLog",
"dependencies": [
]
}
]
}
Fetching https://github.com/RakuyoKit/RaLog.git
[12/1167] Fetching ralog
Fetched https://github.com/RakuyoKit/RaLog.git from cache (0.88s)
Creating working copy for https://github.com/RakuyoKit/RaLog.git
Working copy of https://github.com/RakuyoKit/RaLog.git resolved at master (06787f6)
warning: '.resolve-product-dependencies': dependency 'ralog' 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/RakuyoKit/RaLog.git
https://github.com/RakuyoKit/RaLog.git
{
"dependencies" : [
{
"identity" : "swift",
"requirement" : {
"branch" : [
"release/1.4.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/RakuyoKit/swift.git"
}
],
"manifest_display_name" : "RaLog",
"name" : "RaLog",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "5.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "RaLog",
"targets" : [
"RaLog"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "RaLogTests",
"module_type" : "SwiftTarget",
"name" : "RaLogTests",
"path" : "Tests",
"sources" : [
"RaLogTests/RaLogTests.swift"
],
"target_dependencies" : [
"RaLog"
],
"type" : "test"
},
{
"c99name" : "RaLog",
"module_type" : "SwiftTarget",
"name" : "RaLog",
"path" : "Sources/Core",
"product_memberships" : [
"RaLog"
],
"sources" : [
"Built-in.swift",
"Filterable.swift",
"Log.swift",
"LogModelProtocol.swift",
"Printable.swift",
"RaLogCompatible.swift",
"Storable.swift",
"WebView+RaLog.swift",
"Wrapper.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
[1/1] Compiling plugin FormatSwift
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-5BDAB9E9C0126B9D.txt
[5/14] Compiling RaLog RaLogCompatible.swift
[6/14] Compiling RaLog Wrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Wrapper.swift:14:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// A wrapper container to provide default global storage support for other types.
12 | final class Wrapper {
| `- note: class 'Wrapper' does not conform to the 'Sendable' protocol
13 | /// Singleton object
14 | static let shared = Wrapper()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' 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
15 |
16 | var logs: [LogModelProtocol] = []
[7/14] Compiling RaLog Storable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Storable.swift:16:23: warning: static property 'disk' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Used to specify the location of cache storage.
14 | public struct StorageMode: OptionSet {
| `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
15 | /// Storage on disk.
16 | public static let disk = Self(rawValue: 1 << 0)
| |- warning: static property 'disk' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disk' 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
17 |
18 | /// Cached on memory.
/Users/admin/builder/spi-builder-workspace/Sources/Core/Storable.swift:19:23: warning: static property 'memory' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Used to specify the location of cache storage.
14 | public struct StorageMode: OptionSet {
| `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
15 | /// Storage on disk.
16 | public static let disk = Self(rawValue: 1 << 0)
17 |
18 | /// Cached on memory.
19 | public static let memory = Self(rawValue: 1 << 1)
| |- warning: static property 'memory' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'memory' 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
20 |
21 | /// `.disk` & `.memory`.
/Users/admin/builder/spi-builder-workspace/Sources/Core/Storable.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Used to specify the location of cache storage.
14 | public struct StorageMode: OptionSet {
| `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
15 | /// Storage on disk.
16 | public static let disk = Self(rawValue: 1 << 0)
:
20 |
21 | /// `.disk` & `.memory`.
22 | public static let all: StorageMode = [.disk, .memory]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'StorageMode' 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
23 |
24 | public let rawValue: Int
/Users/admin/builder/spi-builder-workspace/Sources/Core/Wrapper.swift:14:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// A wrapper container to provide default global storage support for other types.
12 | final class Wrapper {
| `- note: class 'Wrapper' does not conform to the 'Sendable' protocol
13 | /// Singleton object
14 | static let shared = Wrapper()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' 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
15 |
16 | var logs: [LogModelProtocol] = []
[8/14] Compiling RaLog LogModelProtocol.swift
[9/14] Compiling RaLog Printable.swift
[10/14] Compiling RaLog Filterable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Wrapper.swift:14:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// A wrapper container to provide default global storage support for other types.
12 | final class Wrapper {
| `- note: class 'Wrapper' does not conform to the 'Sendable' protocol
13 | /// Singleton object
14 | static let shared = Wrapper()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' 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
15 |
16 | var logs: [LogModelProtocol] = []
[11/14] Emitting module RaLog
/Users/admin/builder/spi-builder-workspace/Sources/Core/Log.swift:22:23: warning: static property 'globalFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// A global log formatter that can be set to customize log output.
22 | public static var globalFormatter: ((_ log: LogModelProtocol) -> String)? = nil
| |- warning: static property 'globalFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalFormatter' 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
23 |
24 | /// Determines whether it is enabled.
/Users/admin/builder/spi-builder-workspace/Sources/Core/Log.swift:28:23: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | /// This switch controls all processes including printing, filtering, and saving.
27 | /// See the default implementation of the `Printable.print(_:)` method for details.
28 | public static var isEnabled: Bool = {
| |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isEnabled' 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
29 | #if DEBUG
30 | true
/Users/admin/builder/spi-builder-workspace/Sources/Core/Storable.swift:16:23: warning: static property 'disk' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Used to specify the location of cache storage.
14 | public struct StorageMode: OptionSet {
| `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
15 | /// Storage on disk.
16 | public static let disk = Self(rawValue: 1 << 0)
| |- warning: static property 'disk' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disk' 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
17 |
18 | /// Cached on memory.
/Users/admin/builder/spi-builder-workspace/Sources/Core/Storable.swift:19:23: warning: static property 'memory' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Used to specify the location of cache storage.
14 | public struct StorageMode: OptionSet {
| `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
15 | /// Storage on disk.
16 | public static let disk = Self(rawValue: 1 << 0)
17 |
18 | /// Cached on memory.
19 | public static let memory = Self(rawValue: 1 << 1)
| |- warning: static property 'memory' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'memory' 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
20 |
21 | /// `.disk` & `.memory`.
/Users/admin/builder/spi-builder-workspace/Sources/Core/Storable.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Used to specify the location of cache storage.
14 | public struct StorageMode: OptionSet {
| `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
15 | /// Storage on disk.
16 | public static let disk = Self(rawValue: 1 << 0)
:
20 |
21 | /// `.disk` & `.memory`.
22 | public static let all: StorageMode = [.disk, .memory]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'StorageMode' 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
23 |
24 | public let rawValue: Int
/Users/admin/builder/spi-builder-workspace/Sources/Core/Wrapper.swift:14:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// A wrapper container to provide default global storage support for other types.
12 | final class Wrapper {
| `- note: class 'Wrapper' does not conform to the 'Sendable' protocol
13 | /// Singleton object
14 | static let shared = Wrapper()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' 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
15 |
16 | var logs: [LogModelProtocol] = []
[12/14] Compiling RaLog Log.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Log.swift:22:23: warning: static property 'globalFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// A global log formatter that can be set to customize log output.
22 | public static var globalFormatter: ((_ log: LogModelProtocol) -> String)? = nil
| |- warning: static property 'globalFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalFormatter' 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
23 |
24 | /// Determines whether it is enabled.
/Users/admin/builder/spi-builder-workspace/Sources/Core/Log.swift:28:23: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | /// This switch controls all processes including printing, filtering, and saving.
27 | /// See the default implementation of the `Printable.print(_:)` method for details.
28 | public static var isEnabled: Bool = {
| |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isEnabled' 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
29 | #if DEBUG
30 | true
[13/14] Compiling RaLog Built-in.swift
[14/14] Compiling RaLog WebView+RaLog.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/WebView+RaLog.swift:36:50: warning: call to main actor-isolated instance method 'addUserScript' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
29 | /// - injectionTime: When the script should be injected. Default is `.atDocumentEnd`
30 | /// - isForMainFrameOnly: Whether the script should be injected into all frames or just the main frame. Default is `false`
31 | public func addCaptureLogsScript(
| `- note: add '@MainActor' to make instance method 'addCaptureLogsScript(post:injectionTime:isForMainFrameOnly:)' part of global actor 'MainActor'
32 | post: ((_ param: String) -> String)? = nil,
33 | injectionTime: WKUserScriptInjectionTime = .atDocumentEnd,
34 | isForMainFrameOnly: Bool = false
35 | ) {
36 | base.configuration.userContentController.addUserScript(WKUserScript(source: """
| `- warning: call to main actor-isolated instance method 'addUserScript' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | console.log = (function(oriLogFunc){
38 | return function(str)
WebKit.WKUserContentController:4:26: note: calls to instance method 'addUserScript' from outside of its actor context are implicitly asynchronous
2 | @MainActor open class WKUserContentController : NSObject, NSSecureCoding {
3 | open var userScripts: [WKUserScript] { get }
4 | @MainActor open func addUserScript(_ userScript: WKUserScript)
| `- note: calls to instance method 'addUserScript' from outside of its actor context are implicitly asynchronous
5 | open func removeAllUserScripts()
6 | @available(macOS 11.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/Core/WebView+RaLog.swift:36:28: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | /// - injectionTime: When the script should be injected. Default is `.atDocumentEnd`
30 | /// - isForMainFrameOnly: Whether the script should be injected into all frames or just the main frame. Default is `false`
31 | public func addCaptureLogsScript(
| `- note: add '@MainActor' to make instance method 'addCaptureLogsScript(post:injectionTime:isForMainFrameOnly:)' part of global actor 'MainActor'
32 | post: ((_ param: String) -> String)? = nil,
33 | injectionTime: WKUserScriptInjectionTime = .atDocumentEnd,
34 | isForMainFrameOnly: Bool = false
35 | ) {
36 | base.configuration.userContentController.addUserScript(WKUserScript(source: """
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | console.log = (function(oriLogFunc){
38 | return function(str)
WebKit.WKWebViewConfiguration:5:25: note: property declared here
3 | open var processPool: WKProcessPool { get set }
4 | open var preferences: WKPreferences { get set }
5 | @MainActor open var userContentController: WKUserContentController { get set }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var websiteDataStore: WKWebsiteDataStore { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Core/WebView+RaLog.swift:36:14: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | /// - injectionTime: When the script should be injected. Default is `.atDocumentEnd`
30 | /// - isForMainFrameOnly: Whether the script should be injected into all frames or just the main frame. Default is `false`
31 | public func addCaptureLogsScript(
| `- note: add '@MainActor' to make instance method 'addCaptureLogsScript(post:injectionTime:isForMainFrameOnly:)' part of global actor 'MainActor'
32 | post: ((_ param: String) -> String)? = nil,
33 | injectionTime: WKUserScriptInjectionTime = .atDocumentEnd,
34 | isForMainFrameOnly: Bool = false
35 | ) {
36 | base.configuration.userContentController.addUserScript(WKUserScript(source: """
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | console.log = (function(oriLogFunc){
38 | return function(str)
WebKit.WKWebView:3:36: note: property declared here
1 | @available(macOS 10.10, *)
2 | @MainActor open class WKWebView : NSView {
3 | @NSCopying @MainActor open var configuration: WKWebViewConfiguration { get }
| `- note: property declared here
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Core/WebView+RaLog.swift:36:64: warning: call to main actor-isolated initializer 'init(source:injectionTime:forMainFrameOnly:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
29 | /// - injectionTime: When the script should be injected. Default is `.atDocumentEnd`
30 | /// - isForMainFrameOnly: Whether the script should be injected into all frames or just the main frame. Default is `false`
31 | public func addCaptureLogsScript(
| `- note: add '@MainActor' to make instance method 'addCaptureLogsScript(post:injectionTime:isForMainFrameOnly:)' part of global actor 'MainActor'
32 | post: ((_ param: String) -> String)? = nil,
33 | injectionTime: WKUserScriptInjectionTime = .atDocumentEnd,
34 | isForMainFrameOnly: Bool = false
35 | ) {
36 | base.configuration.userContentController.addUserScript(WKUserScript(source: """
| `- warning: call to main actor-isolated initializer 'init(source:injectionTime:forMainFrameOnly:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | console.log = (function(oriLogFunc){
38 | return function(str)
WebKit.WKUserScript:8:23: note: calls to initializer 'init(source:injectionTime:forMainFrameOnly:)' from outside of its actor context are implicitly asynchronous
6 | @available(swift, obsoleted: 3, renamed: "isForMainFrameOnly")
7 | open var forMainFrameOnly: Bool { get }
8 | @MainActor public init(source: String, injectionTime: WKUserScriptInjectionTime, forMainFrameOnly: Bool)
| `- note: calls to initializer 'init(source:injectionTime:forMainFrameOnly:)' from outside of its actor context are implicitly asynchronous
9 | @available(macOS 11.0, *)
10 | public init(source: String, injectionTime: WKUserScriptInjectionTime, forMainFrameOnly: Bool, in contentWorld: WKContentWorld)
Build complete! (21.00s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift",
"requirement" : {
"branch" : [
"release/1.4.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/RakuyoKit/swift.git"
}
],
"manifest_display_name" : "RaLog",
"name" : "RaLog",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "5.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "RaLog",
"targets" : [
"RaLog"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "RaLogTests",
"module_type" : "SwiftTarget",
"name" : "RaLogTests",
"path" : "Tests",
"sources" : [
"RaLogTests/RaLogTests.swift"
],
"target_dependencies" : [
"RaLog"
],
"type" : "test"
},
{
"c99name" : "RaLog",
"module_type" : "SwiftTarget",
"name" : "RaLog",
"path" : "Sources/Core",
"product_memberships" : [
"RaLog"
],
"sources" : [
"Built-in.swift",
"Filterable.swift",
"Log.swift",
"LogModelProtocol.swift",
"Printable.swift",
"RaLogCompatible.swift",
"Storable.swift",
"WebView+RaLog.swift",
"Wrapper.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.