Build Information
Successful build of LCAppSandboxFileKit, reference main (1293c4
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 10:21:40 UTC.
Swift 6 data race errors: 2
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/DevLiuSir/LCAppSandboxFileKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DevLiuSir/LCAppSandboxFileKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 1293c45 Update README.md
Cloned https://github.com/DevLiuSir/LCAppSandboxFileKit.git
Revision (git rev-parse @):
1293c45999585cbd550f2abfdcfe35045683f484
SUCCESS checkout https://github.com/DevLiuSir/LCAppSandboxFileKit.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": "lcappsandboxfilekit",
"name": "LCAppSandboxFileKit",
"url": "https://github.com/DevLiuSir/LCAppSandboxFileKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LCAppSandboxFileKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/DevLiuSir/LCAppSandboxFileKit.git
[1/136] Fetching lcappsandboxfilekit
Fetched https://github.com/DevLiuSir/LCAppSandboxFileKit.git from cache (0.83s)
Creating working copy for https://github.com/DevLiuSir/LCAppSandboxFileKit.git
Working copy of https://github.com/DevLiuSir/LCAppSandboxFileKit.git resolved at main (1293c45)
warning: '.resolve-product-dependencies': dependency 'lcappsandboxfilekit' 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/DevLiuSir/LCAppSandboxFileKit.git
https://github.com/DevLiuSir/LCAppSandboxFileKit.git
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "LCAppSandboxFileKit",
"name" : "LCAppSandboxFileKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "LCAppSandboxFileKit",
"targets" : [
"LCAppSandboxFileKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LCAppSandboxFileKitTests",
"module_type" : "SwiftTarget",
"name" : "LCAppSandboxFileKitTests",
"path" : "Tests/LCAppSandboxFileKitTests",
"sources" : [
"LCAppSandboxFileKitTests.swift"
],
"target_dependencies" : [
"LCAppSandboxFileKit"
],
"type" : "test"
},
{
"c99name" : "LCAppSandboxFileKit",
"module_type" : "SwiftTarget",
"name" : "LCAppSandboxFileKit",
"path" : "Sources/LCAppSandboxFileKit",
"product_memberships" : [
"LCAppSandboxFileKit"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/de.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "de"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/en.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/es.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "es"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/fr.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "fr"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/it.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "it"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/ja.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "ja"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/ko.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "ko"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/pt-PT.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "pt-pt"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/ru.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "ru"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/zh-Hans.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "zh-hans"
}
}
}
],
"sources" : [
"LCAppSandboxFileAccess.swift",
"LCAppSandboxFileKit.swift",
"LCOpenSavePanelDelegate.swift",
"LCPersistentAccess.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
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/13] Copying LCAppSandboxFileKit.strings
[9/13] Write sources
[10/13] Copying Info.plist
[10/13] Copying LCAppSandboxFileKit.strings
[12/13] Write swift-version-2F0A5646E1D333AE.txt
[14/19] Compiling LCAppSandboxFileKit resource_bundle_accessor.swift
[15/19] Compiling LCAppSandboxFileKit LCOpenSavePanelDelegate.swift
[16/19] Compiling LCAppSandboxFileKit LCPersistentAccess.swift
[17/19] Compiling LCAppSandboxFileKit LCAppSandboxFileAccess.swift
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:71:16: warning: static property 'fileAccess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 |
70 | /// 创建一个 LCAppSandboxFileAccess 对象
71 | static var fileAccess = LCAppSandboxFileAccess()
| |- warning: static property 'fileAccess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fileAccess' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fileAccess' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// 是否允许开启文件夹选择, 默认:false
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:116:29: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
114 | // 显示打开面板
115 | let displayOpenPanelBlock = {
116 | let openPanel = NSOpenPanel()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | openPanel.title = self.title
118 | openPanel.message = self.message // 要在NSOpenPanel对象顶部显示文本或指令
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:23:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
21 | @interface NSResponder : NSObject <NSCoding>
22 |
23 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSSavePanel'
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:117:23: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
115 | let displayOpenPanelBlock = {
116 | let openPanel = NSOpenPanel()
117 | openPanel.title = self.title
| `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
118 | openPanel.message = self.message // 要在NSOpenPanel对象顶部显示文本或指令
119 | openPanel.prompt = self.panelButtonTitle
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:131:45: note: mutation of this property is only permitted within the actor
129 | - Note: The open and save panel does not currently have a titlebar. So the title is not displayed.
130 | */
131 | @property (null_resettable, copy) NSString *title;
| `- note: mutation of this property is only permitted within the actor
132 |
133 | /**
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:118:23: warning: main actor-isolated property 'message' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
116 | let openPanel = NSOpenPanel()
117 | openPanel.title = self.title
118 | openPanel.message = self.message // 要在NSOpenPanel对象顶部显示文本或指令
| `- warning: main actor-isolated property 'message' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
119 | openPanel.prompt = self.panelButtonTitle
120 | openPanel.canCreateDirectories = false // 是否允许用户创建目录。
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:151:45: note: mutation of this property is only permitted within the actor
149 | `NSSavePanel`/`NSOpenPanel`: Sets and returns the message shown under title of the panel.
150 | */
151 | @property (null_resettable, copy) NSString *message;
| `- note: mutation of this property is only permitted within the actor
152 |
153 | /**
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:119:23: warning: main actor-isolated property 'prompt' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | openPanel.title = self.title
118 | openPanel.message = self.message // 要在NSOpenPanel对象顶部显示文本或指令
119 | openPanel.prompt = self.panelButtonTitle
| `- warning: main actor-isolated property 'prompt' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
120 | openPanel.canCreateDirectories = false // 是否允许用户创建目录。
121 | openPanel.canChooseFiles = false // 是否允许用户选择文件
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:125:45: note: mutation of this property is only permitted within the actor
123 | `NSSavePanel`/`NSOpenPanel`: Sets the text shown on the Open or Save button. If set to an empty string, it will show a localized "Open" for the NSOpenPanel and "Save" for the NSSavePanel. The default value will be the correct localized prompt for the open or save panel, as appropriate.
124 | */
125 | @property (null_resettable, copy) NSString *prompt;
| `- note: mutation of this property is only permitted within the actor
126 |
127 | /**
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:120:23: warning: main actor-isolated property 'canCreateDirectories' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
118 | openPanel.message = self.message // 要在NSOpenPanel对象顶部显示文本或指令
119 | openPanel.prompt = self.panelButtonTitle
120 | openPanel.canCreateDirectories = false // 是否允许用户创建目录。
| `- warning: main actor-isolated property 'canCreateDirectories' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
121 | openPanel.canChooseFiles = false // 是否允许用户选择文件
122 | openPanel.canChooseDirectories = true // 是否允许用户选择要打开的 文件夹
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:102:16: note: mutation of this property is only permitted within the actor
100 | `NSSavePanel`/`NSOpenPanel`: Set to `YES` to show the "New Folder" button. Default is `YES`.
101 | */
102 | @property BOOL canCreateDirectories;
| `- note: mutation of this property is only permitted within the actor
103 |
104 | /**
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:121:23: warning: main actor-isolated property 'canChooseFiles' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
119 | openPanel.prompt = self.panelButtonTitle
120 | openPanel.canCreateDirectories = false // 是否允许用户创建目录。
121 | openPanel.canChooseFiles = false // 是否允许用户选择文件
| `- warning: main actor-isolated property 'canChooseFiles' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
122 | openPanel.canChooseDirectories = true // 是否允许用户选择要打开的 文件夹
123 | openPanel.directoryURL = updatedURL
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:32:16: note: mutation of this property is only permitted within the actor
30 | @property BOOL allowsMultipleSelection;
31 |
32 | @property BOOL canChooseFiles;
| `- note: mutation of this property is only permitted within the actor
33 |
34 | /* Controls how the receiver responds to ubiquitous documents with conflicting versions. If YES, then when the user attempts to open one or more documents with conflicts, the receiver will first display conflict resolution UI, requiring the user to resolve those conflicts before the documents can be opened. If NO, then the receiver does nothing in response to conflicts, allowing your application to handle them. The default value is YES, except for applications linked against the 10.9 SDK or earlier that have adopted iCloud by specifying a ubiquitous container identifier entitlement.
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:122:23: warning: main actor-isolated property 'canChooseDirectories' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
120 | openPanel.canCreateDirectories = false // 是否允许用户创建目录。
121 | openPanel.canChooseFiles = false // 是否允许用户选择文件
122 | openPanel.canChooseDirectories = true // 是否允许用户选择要打开的 文件夹
| `- warning: main actor-isolated property 'canChooseDirectories' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
123 | openPanel.directoryURL = updatedURL
124 | openPanel.delegate = openPanelDelegate
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:28:16: note: mutation of this property is only permitted within the actor
26 | @property BOOL resolvesAliases;
27 |
28 | @property BOOL canChooseDirectories;
| `- note: mutation of this property is only permitted within the actor
29 |
30 | @property BOOL allowsMultipleSelection;
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:123:23: warning: main actor-isolated property 'directoryURL' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
121 | openPanel.canChooseFiles = false // 是否允许用户选择文件
122 | openPanel.canChooseDirectories = true // 是否允许用户选择要打开的 文件夹
123 | openPanel.directoryURL = updatedURL
| `- warning: main actor-isolated property 'directoryURL' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | openPanel.delegate = openPanelDelegate
125 | NSApp.activate(ignoringOtherApps: true)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:56:35: note: mutation of this property is only permitted within the actor
54 | - Note: Can only be set during the configuration phase.
55 | */
56 | @property (nullable, copy) NSURL *directoryURL API_AVAILABLE(macos(10.6));
| `- note: mutation of this property is only permitted within the actor
57 |
58 | /**
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:124:23: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
122 | openPanel.canChooseDirectories = true // 是否允许用户选择要打开的 文件夹
123 | openPanel.directoryURL = updatedURL
124 | openPanel.delegate = openPanelDelegate
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
125 | NSApp.activate(ignoringOtherApps: true)
126 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:88:56: note: mutation of this property is only permitted within the actor
86 | `NSSavePanel`/`NSOpenPanel`: Sets and returns the delegate.
87 | */
88 | @property (nullable, weak) id<NSOpenSavePanelDelegate> delegate;
| `- note: mutation of this property is only permitted within the actor
89 |
90 | #pragma clang diagnostic pop
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:125:19: warning: call to main actor-isolated instance method 'activate(ignoringOtherApps:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
123 | openPanel.directoryURL = updatedURL
124 | openPanel.delegate = openPanelDelegate
125 | NSApp.activate(ignoringOtherApps: true)
| `- warning: call to main actor-isolated instance method 'activate(ignoringOtherApps:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 |
127 | // 用户选择了文件夹后,更新allowedURL
AppKit.NSApplication.activate:3:24: note: calls to instance method 'activate(ignoringOtherApps:)' from outside of its actor context are implicitly asynchronous
1 | class NSApplication {
2 | @available(macOS, introduced: 10.0, deprecated: 100000, message: "This method will be deprecated in a future release. Use NSApp.activate instead.")
3 | @MainActor open func activate(ignoringOtherApps ignoreOtherApps: Bool)}
| |- note: calls to instance method 'activate(ignoringOtherApps:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:125:13: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
123 | openPanel.directoryURL = updatedURL
124 | openPanel.delegate = openPanelDelegate
125 | NSApp.activate(ignoringOtherApps: true)
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
126 |
127 | // 用户选择了文件夹后,更新allowedURL
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:128:26: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 |
127 | // 用户选择了文件夹后,更新allowedURL
128 | if openPanel.runModal() == NSApplication.ModalResponse.OK {
| `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | allowedURL = openPanel.url
130 | }
AppKit.NSSavePanel.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSSavePanel {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
| |- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSPanel'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:129:40: warning: main actor-isolated property 'url' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 | // 用户选择了文件夹后,更新allowedURL
128 | if openPanel.runModal() == NSApplication.ModalResponse.OK {
129 | allowedURL = openPanel.url
| `- warning: main actor-isolated property 'url' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 | }
131 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:39:45: note: property declared here
37 | `NSOpenPanel`: Returns the single filename selected by the user. Note: if -allowsMultipleSelection is set, you should use the -URLs on NSOpenPanel instead.
38 | */
39 | @property (nullable, readonly, copy) NSURL *URL;
| `- note: property declared here
40 |
41 | // MARK: - Configuration Properties
[18/19] Compiling LCAppSandboxFileKit LCAppSandboxFileKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileKit.swift:16:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'LCAppSandboxFileKit' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// 应用沙盒文件kit
13 | public class LCAppSandboxFileKit: NSObject {
| `- note: class 'LCAppSandboxFileKit' does not conform to the 'Sendable' protocol
14 |
15 | /// 创建一个单例对象,方便在整个应用中使用
16 | public static let standard = LCAppSandboxFileKit()
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'LCAppSandboxFileKit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// 请求访问`指定路径` (一般用于 `/` 根目录)
[19/19] Emitting module LCAppSandboxFileKit
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileAccess.swift:71:16: warning: static property 'fileAccess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 |
70 | /// 创建一个 LCAppSandboxFileAccess 对象
71 | static var fileAccess = LCAppSandboxFileAccess()
| |- warning: static property 'fileAccess' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fileAccess' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fileAccess' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// 是否允许开启文件夹选择, 默认:false
/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/LCAppSandboxFileKit.swift:16:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'LCAppSandboxFileKit' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// 应用沙盒文件kit
13 | public class LCAppSandboxFileKit: NSObject {
| `- note: class 'LCAppSandboxFileKit' does not conform to the 'Sendable' protocol
14 |
15 | /// 创建一个单例对象,方便在整个应用中使用
16 | public static let standard = LCAppSandboxFileKit()
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'LCAppSandboxFileKit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// 请求访问`指定路径` (一般用于 `/` 根目录)
Build complete! (7.30s)
Build complete.
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "LCAppSandboxFileKit",
"name" : "LCAppSandboxFileKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "LCAppSandboxFileKit",
"targets" : [
"LCAppSandboxFileKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LCAppSandboxFileKitTests",
"module_type" : "SwiftTarget",
"name" : "LCAppSandboxFileKitTests",
"path" : "Tests/LCAppSandboxFileKitTests",
"sources" : [
"LCAppSandboxFileKitTests.swift"
],
"target_dependencies" : [
"LCAppSandboxFileKit"
],
"type" : "test"
},
{
"c99name" : "LCAppSandboxFileKit",
"module_type" : "SwiftTarget",
"name" : "LCAppSandboxFileKit",
"path" : "Sources/LCAppSandboxFileKit",
"product_memberships" : [
"LCAppSandboxFileKit"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/de.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "de"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/en.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/es.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "es"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/fr.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "fr"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/it.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "it"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/ja.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "ja"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/ko.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "ko"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/pt-PT.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "pt-pt"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/ru.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "ru"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/LCAppSandboxFileKit/Resources/zh-Hans.lproj/LCAppSandboxFileKit.strings",
"rule" : {
"process" : {
"localization" : "zh-hans"
}
}
}
],
"sources" : [
"LCAppSandboxFileAccess.swift",
"LCAppSandboxFileKit.swift",
"LCOpenSavePanelDelegate.swift",
"LCPersistentAccess.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.