Build Information
Failed to build FileKit, reference develop (9006d2
), with Swift 6.1 for Linux on 27 Apr 2025 09:52:59 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
35 |
36 | /// The file can be written to.
/host/spi-builder-workspace/Sources/FilePermissions.swift:37:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
35 |
36 | /// The file can be written to.
37 | public static let write = FilePermissions(rawValue: 2)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'write' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | /// The file can be executed.
/host/spi-builder-workspace/Sources/FilePermissions.swift:40:23: warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
38 |
39 | /// The file can be executed.
40 | public static let execute = FilePermissions(rawValue: 4)
| |- warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'execute' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | /// All FilePermissions
/host/spi-builder-workspace/Sources/FilePermissions.swift:43:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
41 |
42 | /// All FilePermissions
43 | public static let all: [FilePermissions] = [.read, .write, .execute]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// The raw integer value of `self`.
[21/38] Compiling FileKit FileKitError.swift
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:235:59: error: cannot find 'O_EVTONLY' in scope
233 |
234 | if source == nil && fileDescriptor == -1 {
235 | fileDescriptor = open(path._safeRawValue, O_EVTONLY)
| `- error: cannot find 'O_EVTONLY' in scope
236 | if fileDescriptor == -1 { return false }
237 | var _events = events
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:239:41: error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
237 | var _events = events
238 | _events.remove(.Create)
239 | source = DispatchSource.makeFileSystemObjectSource(fileDescriptor: fileDescriptor, eventMask: DispatchSource.FileSystemEvent(rawValue: _events.rawValue), queue: queue)
| `- error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
240 |
241 | // Recheck if open success and source create success
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:255:29: error: cannot find 'Darwin' in scope
253 | // Define a cancel handler to ensure the path is closed when the source is cancelled.
254 | source!.setCancelHandler { // [unowned self] () in
255 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
256 | self.fileDescriptor = -1
257 | self.source = nil
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:282:13: error: cannot find 'Darwin' in scope
280 | open func close() {
281 | createWatcher?.stopWatching()
282 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
283 | self.fileDescriptor = -1
284 | self.source = nil
/host/spi-builder-workspace/Sources/FileKit.swift:64:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Shared json decoder instance
64 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/FileKit.swift:66:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | public static var jsonDecoder = JSONDecoder()
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
/host/spi-builder-workspace/Sources/FileKit.swift:68:23: warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | public static var jsonEncoder = JSONEncoder()
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
| |- warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'propertyListDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
/host/spi-builder-workspace/Sources/FileKit.swift:70:23: warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 | public static var propertyListDecoder = PropertyListDecoder()
69 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
| |- warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'propertyListEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | }
/host/spi-builder-workspace/Sources/FileKitError.swift:79:14: warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
77 | enum ReasonError: Error {
78 | /// Failed to read or convert to specific type.
79 | case conversion(Any)
| `- warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
80 | /// A file stream/handle is alread closed.
81 | case closed
/host/spi-builder-workspace/Sources/FileKitError.swift:36:10: warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
34 |
35 | /// A file does not exist.
36 | case fileDoesNotExist(path: Path)
| `- warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:39:10: warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
39 | case fileAlreadyExists(path: Path)
| `- warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:51:10: warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
51 | case createFileFail(path: Path)
| `- warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:54:10: warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
54 | case createDirectoryFail(path: Path, error: Error)
| `- warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:57:10: warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
57 | case deleteFileFail(path: Path, error: Error)
| `- warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:60:10: warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
60 | case readFromFileFail(path: Path, error: Error)
| `- warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:63:10: warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
63 | case writeToFileFail(path: Path, error: Error)
| `- warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:72:10: warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
72 | case attributesChangeFail(path: Path, error: Error)
| `- warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
73 |
74 | // MARK: - Reason
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FilePermissions.swift:34:23: warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
34 | public static let read = FilePermissions(rawValue: 1)
| |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'read' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /// The file can be written to.
/host/spi-builder-workspace/Sources/FilePermissions.swift:37:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
35 |
36 | /// The file can be written to.
37 | public static let write = FilePermissions(rawValue: 2)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'write' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | /// The file can be executed.
/host/spi-builder-workspace/Sources/FilePermissions.swift:40:23: warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
38 |
39 | /// The file can be executed.
40 | public static let execute = FilePermissions(rawValue: 4)
| |- warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'execute' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | /// All FilePermissions
/host/spi-builder-workspace/Sources/FilePermissions.swift:43:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
41 |
42 | /// All FilePermissions
43 | public static let all: [FilePermissions] = [.read, .write, .execute]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// The raw integer value of `self`.
[22/38] Compiling FileKit FilePermissions.swift
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:235:59: error: cannot find 'O_EVTONLY' in scope
233 |
234 | if source == nil && fileDescriptor == -1 {
235 | fileDescriptor = open(path._safeRawValue, O_EVTONLY)
| `- error: cannot find 'O_EVTONLY' in scope
236 | if fileDescriptor == -1 { return false }
237 | var _events = events
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:239:41: error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
237 | var _events = events
238 | _events.remove(.Create)
239 | source = DispatchSource.makeFileSystemObjectSource(fileDescriptor: fileDescriptor, eventMask: DispatchSource.FileSystemEvent(rawValue: _events.rawValue), queue: queue)
| `- error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
240 |
241 | // Recheck if open success and source create success
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:255:29: error: cannot find 'Darwin' in scope
253 | // Define a cancel handler to ensure the path is closed when the source is cancelled.
254 | source!.setCancelHandler { // [unowned self] () in
255 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
256 | self.fileDescriptor = -1
257 | self.source = nil
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:282:13: error: cannot find 'Darwin' in scope
280 | open func close() {
281 | createWatcher?.stopWatching()
282 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
283 | self.fileDescriptor = -1
284 | self.source = nil
/host/spi-builder-workspace/Sources/FileKit.swift:64:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Shared json decoder instance
64 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/FileKit.swift:66:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | public static var jsonDecoder = JSONDecoder()
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
/host/spi-builder-workspace/Sources/FileKit.swift:68:23: warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | public static var jsonEncoder = JSONEncoder()
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
| |- warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'propertyListDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
/host/spi-builder-workspace/Sources/FileKit.swift:70:23: warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 | public static var propertyListDecoder = PropertyListDecoder()
69 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
| |- warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'propertyListEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | }
/host/spi-builder-workspace/Sources/FileKitError.swift:79:14: warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
77 | enum ReasonError: Error {
78 | /// Failed to read or convert to specific type.
79 | case conversion(Any)
| `- warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
80 | /// A file stream/handle is alread closed.
81 | case closed
/host/spi-builder-workspace/Sources/FileKitError.swift:36:10: warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
34 |
35 | /// A file does not exist.
36 | case fileDoesNotExist(path: Path)
| `- warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:39:10: warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
39 | case fileAlreadyExists(path: Path)
| `- warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:51:10: warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
51 | case createFileFail(path: Path)
| `- warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:54:10: warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
54 | case createDirectoryFail(path: Path, error: Error)
| `- warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:57:10: warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
57 | case deleteFileFail(path: Path, error: Error)
| `- warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:60:10: warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
60 | case readFromFileFail(path: Path, error: Error)
| `- warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:63:10: warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
63 | case writeToFileFail(path: Path, error: Error)
| `- warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FileKitError.swift:72:10: warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
72 | case attributesChangeFail(path: Path, error: Error)
| `- warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
73 |
74 | // MARK: - Reason
/host/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/host/spi-builder-workspace/Sources/FilePermissions.swift:34:23: warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
34 | public static let read = FilePermissions(rawValue: 1)
| |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'read' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /// The file can be written to.
/host/spi-builder-workspace/Sources/FilePermissions.swift:37:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
35 |
36 | /// The file can be written to.
37 | public static let write = FilePermissions(rawValue: 2)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'write' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | /// The file can be executed.
/host/spi-builder-workspace/Sources/FilePermissions.swift:40:23: warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
38 |
39 | /// The file can be executed.
40 | public static let execute = FilePermissions(rawValue: 4)
| |- warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'execute' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | /// All FilePermissions
/host/spi-builder-workspace/Sources/FilePermissions.swift:43:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
41 |
42 | /// All FilePermissions
43 | public static let all: [FilePermissions] = [.read, .write, .execute]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// The raw integer value of `self`.
[23/38] Compiling FileKit FileProtection.swift
[24/38] Compiling FileKit FileSystemEvent.swift
[25/38] Compiling FileKit FileSystemEventStream.swift
[26/38] Compiling FileKit FileSystemWatcher.swift
[27/38] Compiling FileKit FileType.swift
[28/38] Compiling FileKit Image+FileKit.swift
[29/38] Compiling FileKit ImageFile.swift
[30/38] Compiling FileKit JSONType.swift
[31/38] Compiling FileKit NSString+FileKit.swift
/host/spi-builder-workspace/Sources/Path.swift:45:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
:
43 |
44 | /// The root path.
45 | public static let root = Path(separator)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'root' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | /// The path of the program's current working directory.
/host/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation.init:2:1: note: requirement 'init(stringInterpolation:)' declared here
1 | protocol ExpressibleByStringInterpolation {
2 | init(stringInterpolation: Self.StringInterpolation)}
| `- note: requirement 'init(stringInterpolation:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:53:33: warning: result of call to 'changeCurrentDirectoryPath' is unused
51 | }
52 | set {
53 | FileManager.default.changeCurrentDirectoryPath(newValue._safeRawValue)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
54 | }
55 | }
/host/spi-builder-workspace/Sources/Path.swift:985:25: error: no exact matches in call to initializer
983 | public init?(bookmarkData bookData: Data) {
984 | var isStale: ObjCBool = false
985 | let url = try? (NSURL(
| |- error: no exact matches in call to initializer
| |- note: candidate has partially matching parameter list (fileURLWithPath: String, relativeTo: URL?)
| |- note: candidate has partially matching parameter list (dataRepresentation: Data, relativeTo: URL?)
| `- note: candidate has partially matching parameter list (absoluteURLWithDataRepresentation: Data, relativeTo: URL?)
986 | resolvingBookmarkData: bookData,
987 | options: [],
/host/spi-builder-workspace/Sources/Path.swift:998:25: error: value of type 'URL' has no member 'bookmarkData'
996 | /// - Returns: The `Path` objects bookmarkData.
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
| `- error: value of type 'URL' has no member 'bookmarkData'
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
/host/spi-builder-workspace/Sources/Path.swift:999:23: error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
| `- error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
/host/spi-builder-workspace/Sources/Path.swift:1000:45: error: 'nil' requires a contextual type
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
| `- error: 'nil' requires a contextual type
1001 | relativeTo: nil)
1002 | }
/host/spi-builder-workspace/Sources/Path.swift:1001:25: error: 'nil' requires a contextual type
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
| `- error: 'nil' requires a contextual type
1002 | }
1003 |
/host/spi-builder-workspace/Sources/Path.swift:1012:81: error: extra argument 'forUbiquityContainerIdentifier' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: extra argument 'forUbiquityContainerIdentifier' in call
1013 | return nil
1014 | }
/host/spi-builder-workspace/Sources/Path.swift:1012:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1013 | return nil
1014 | }
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1020:38: error: value of type 'FileManager' has no member 'isUbiquitousItem'
1018 | /// - Returns: a Boolean indicating whether the item is targeted for storage in iCloud.
1019 | public var isUbiquitousItem: Bool {
1020 | return _fmWraper.fileManager.isUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'isUbiquitousItem'
1021 | }
1022 |
/host/spi-builder-workspace/Sources/Path.swift:1026:46: error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1024 | public func evictUbiquitousItem() throws {
1025 | do {
1026 | return try _fmWraper.fileManager.evictUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1027 | } catch {
1028 | throw FileKitError.deleteFileFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: extra arguments at positions #1, #2 in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: extra arguments at positions #1, #2 in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1047:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1045 | public func setUbiquitous(destination: Path) throws {
1046 | do {
1047 | try _fmWraper.fileManager.setUbiquitous(true, itemAt: self.url, destinationURL: destination.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1048 | } catch {
1049 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1056:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1054 | public func unsetUbiquitous() throws {
1055 | do {
1056 | try _fmWraper.fileManager.setUbiquitous(false, itemAt: self.url, destinationURL: self.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1057 | } catch {
1058 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1064:35: error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1062 | /// Starts downloading (if necessary) the specified item to the local system.
1063 | func startDownloadingUbiquitous() throws {
1064 | try _fmWraper.fileManager.startDownloadingUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1065 | // TODO need to encapsulate error before exposing it
1066 | }
/host/spi-builder-workspace/Sources/Path.swift:1078:39: error: value of type 'FileManager' has no member 'containerURL'
1076 | /// - Parameter groupIdentifier: The group identifier.
1077 | public init?(groupIdentifier: String) {
1078 | guard let url = FileManager().containerURL(forSecurityApplicationGroupIdentifier: groupIdentifier) else {
| `- error: value of type 'FileManager' has no member 'containerURL'
1079 | return nil
1080 | }
[32/38] Compiling FileKit Operators.swift
/host/spi-builder-workspace/Sources/Path.swift:45:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
:
43 |
44 | /// The root path.
45 | public static let root = Path(separator)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'root' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | /// The path of the program's current working directory.
/host/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation.init:2:1: note: requirement 'init(stringInterpolation:)' declared here
1 | protocol ExpressibleByStringInterpolation {
2 | init(stringInterpolation: Self.StringInterpolation)}
| `- note: requirement 'init(stringInterpolation:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:53:33: warning: result of call to 'changeCurrentDirectoryPath' is unused
51 | }
52 | set {
53 | FileManager.default.changeCurrentDirectoryPath(newValue._safeRawValue)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
54 | }
55 | }
/host/spi-builder-workspace/Sources/Path.swift:985:25: error: no exact matches in call to initializer
983 | public init?(bookmarkData bookData: Data) {
984 | var isStale: ObjCBool = false
985 | let url = try? (NSURL(
| |- error: no exact matches in call to initializer
| |- note: candidate has partially matching parameter list (fileURLWithPath: String, relativeTo: URL?)
| |- note: candidate has partially matching parameter list (dataRepresentation: Data, relativeTo: URL?)
| `- note: candidate has partially matching parameter list (absoluteURLWithDataRepresentation: Data, relativeTo: URL?)
986 | resolvingBookmarkData: bookData,
987 | options: [],
/host/spi-builder-workspace/Sources/Path.swift:998:25: error: value of type 'URL' has no member 'bookmarkData'
996 | /// - Returns: The `Path` objects bookmarkData.
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
| `- error: value of type 'URL' has no member 'bookmarkData'
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
/host/spi-builder-workspace/Sources/Path.swift:999:23: error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
| `- error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
/host/spi-builder-workspace/Sources/Path.swift:1000:45: error: 'nil' requires a contextual type
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
| `- error: 'nil' requires a contextual type
1001 | relativeTo: nil)
1002 | }
/host/spi-builder-workspace/Sources/Path.swift:1001:25: error: 'nil' requires a contextual type
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
| `- error: 'nil' requires a contextual type
1002 | }
1003 |
/host/spi-builder-workspace/Sources/Path.swift:1012:81: error: extra argument 'forUbiquityContainerIdentifier' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: extra argument 'forUbiquityContainerIdentifier' in call
1013 | return nil
1014 | }
/host/spi-builder-workspace/Sources/Path.swift:1012:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1013 | return nil
1014 | }
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1020:38: error: value of type 'FileManager' has no member 'isUbiquitousItem'
1018 | /// - Returns: a Boolean indicating whether the item is targeted for storage in iCloud.
1019 | public var isUbiquitousItem: Bool {
1020 | return _fmWraper.fileManager.isUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'isUbiquitousItem'
1021 | }
1022 |
/host/spi-builder-workspace/Sources/Path.swift:1026:46: error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1024 | public func evictUbiquitousItem() throws {
1025 | do {
1026 | return try _fmWraper.fileManager.evictUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1027 | } catch {
1028 | throw FileKitError.deleteFileFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: extra arguments at positions #1, #2 in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: extra arguments at positions #1, #2 in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1047:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1045 | public func setUbiquitous(destination: Path) throws {
1046 | do {
1047 | try _fmWraper.fileManager.setUbiquitous(true, itemAt: self.url, destinationURL: destination.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1048 | } catch {
1049 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1056:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1054 | public func unsetUbiquitous() throws {
1055 | do {
1056 | try _fmWraper.fileManager.setUbiquitous(false, itemAt: self.url, destinationURL: self.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1057 | } catch {
1058 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1064:35: error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1062 | /// Starts downloading (if necessary) the specified item to the local system.
1063 | func startDownloadingUbiquitous() throws {
1064 | try _fmWraper.fileManager.startDownloadingUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1065 | // TODO need to encapsulate error before exposing it
1066 | }
/host/spi-builder-workspace/Sources/Path.swift:1078:39: error: value of type 'FileManager' has no member 'containerURL'
1076 | /// - Parameter groupIdentifier: The group identifier.
1077 | public init?(groupIdentifier: String) {
1078 | guard let url = FileManager().containerURL(forSecurityApplicationGroupIdentifier: groupIdentifier) else {
| `- error: value of type 'FileManager' has no member 'containerURL'
1079 | return nil
1080 | }
[33/38] Compiling FileKit Path.swift
/host/spi-builder-workspace/Sources/Path.swift:45:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
:
43 |
44 | /// The root path.
45 | public static let root = Path(separator)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'root' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | /// The path of the program's current working directory.
/host/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation.init:2:1: note: requirement 'init(stringInterpolation:)' declared here
1 | protocol ExpressibleByStringInterpolation {
2 | init(stringInterpolation: Self.StringInterpolation)}
| `- note: requirement 'init(stringInterpolation:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:53:33: warning: result of call to 'changeCurrentDirectoryPath' is unused
51 | }
52 | set {
53 | FileManager.default.changeCurrentDirectoryPath(newValue._safeRawValue)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
54 | }
55 | }
/host/spi-builder-workspace/Sources/Path.swift:985:25: error: no exact matches in call to initializer
983 | public init?(bookmarkData bookData: Data) {
984 | var isStale: ObjCBool = false
985 | let url = try? (NSURL(
| |- error: no exact matches in call to initializer
| |- note: candidate has partially matching parameter list (fileURLWithPath: String, relativeTo: URL?)
| |- note: candidate has partially matching parameter list (dataRepresentation: Data, relativeTo: URL?)
| `- note: candidate has partially matching parameter list (absoluteURLWithDataRepresentation: Data, relativeTo: URL?)
986 | resolvingBookmarkData: bookData,
987 | options: [],
/host/spi-builder-workspace/Sources/Path.swift:998:25: error: value of type 'URL' has no member 'bookmarkData'
996 | /// - Returns: The `Path` objects bookmarkData.
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
| `- error: value of type 'URL' has no member 'bookmarkData'
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
/host/spi-builder-workspace/Sources/Path.swift:999:23: error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
| `- error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
/host/spi-builder-workspace/Sources/Path.swift:1000:45: error: 'nil' requires a contextual type
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
| `- error: 'nil' requires a contextual type
1001 | relativeTo: nil)
1002 | }
/host/spi-builder-workspace/Sources/Path.swift:1001:25: error: 'nil' requires a contextual type
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
| `- error: 'nil' requires a contextual type
1002 | }
1003 |
/host/spi-builder-workspace/Sources/Path.swift:1012:81: error: extra argument 'forUbiquityContainerIdentifier' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: extra argument 'forUbiquityContainerIdentifier' in call
1013 | return nil
1014 | }
/host/spi-builder-workspace/Sources/Path.swift:1012:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1013 | return nil
1014 | }
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1020:38: error: value of type 'FileManager' has no member 'isUbiquitousItem'
1018 | /// - Returns: a Boolean indicating whether the item is targeted for storage in iCloud.
1019 | public var isUbiquitousItem: Bool {
1020 | return _fmWraper.fileManager.isUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'isUbiquitousItem'
1021 | }
1022 |
/host/spi-builder-workspace/Sources/Path.swift:1026:46: error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1024 | public func evictUbiquitousItem() throws {
1025 | do {
1026 | return try _fmWraper.fileManager.evictUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1027 | } catch {
1028 | throw FileKitError.deleteFileFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: extra arguments at positions #1, #2 in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: extra arguments at positions #1, #2 in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1047:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1045 | public func setUbiquitous(destination: Path) throws {
1046 | do {
1047 | try _fmWraper.fileManager.setUbiquitous(true, itemAt: self.url, destinationURL: destination.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1048 | } catch {
1049 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1056:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1054 | public func unsetUbiquitous() throws {
1055 | do {
1056 | try _fmWraper.fileManager.setUbiquitous(false, itemAt: self.url, destinationURL: self.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1057 | } catch {
1058 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1064:35: error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1062 | /// Starts downloading (if necessary) the specified item to the local system.
1063 | func startDownloadingUbiquitous() throws {
1064 | try _fmWraper.fileManager.startDownloadingUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1065 | // TODO need to encapsulate error before exposing it
1066 | }
/host/spi-builder-workspace/Sources/Path.swift:1078:39: error: value of type 'FileManager' has no member 'containerURL'
1076 | /// - Parameter groupIdentifier: The group identifier.
1077 | public init?(groupIdentifier: String) {
1078 | guard let url = FileManager().containerURL(forSecurityApplicationGroupIdentifier: groupIdentifier) else {
| `- error: value of type 'FileManager' has no member 'containerURL'
1079 | return nil
1080 | }
[34/38] Compiling FileKit Process+FileKit.swift
/host/spi-builder-workspace/Sources/Path.swift:45:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
:
43 |
44 | /// The root path.
45 | public static let root = Path(separator)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'root' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | /// The path of the program's current working directory.
/host/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation.init:2:1: note: requirement 'init(stringInterpolation:)' declared here
1 | protocol ExpressibleByStringInterpolation {
2 | init(stringInterpolation: Self.StringInterpolation)}
| `- note: requirement 'init(stringInterpolation:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:53:33: warning: result of call to 'changeCurrentDirectoryPath' is unused
51 | }
52 | set {
53 | FileManager.default.changeCurrentDirectoryPath(newValue._safeRawValue)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
54 | }
55 | }
/host/spi-builder-workspace/Sources/Path.swift:985:25: error: no exact matches in call to initializer
983 | public init?(bookmarkData bookData: Data) {
984 | var isStale: ObjCBool = false
985 | let url = try? (NSURL(
| |- error: no exact matches in call to initializer
| |- note: candidate has partially matching parameter list (fileURLWithPath: String, relativeTo: URL?)
| |- note: candidate has partially matching parameter list (dataRepresentation: Data, relativeTo: URL?)
| `- note: candidate has partially matching parameter list (absoluteURLWithDataRepresentation: Data, relativeTo: URL?)
986 | resolvingBookmarkData: bookData,
987 | options: [],
/host/spi-builder-workspace/Sources/Path.swift:998:25: error: value of type 'URL' has no member 'bookmarkData'
996 | /// - Returns: The `Path` objects bookmarkData.
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
| `- error: value of type 'URL' has no member 'bookmarkData'
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
/host/spi-builder-workspace/Sources/Path.swift:999:23: error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
| `- error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
/host/spi-builder-workspace/Sources/Path.swift:1000:45: error: 'nil' requires a contextual type
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
| `- error: 'nil' requires a contextual type
1001 | relativeTo: nil)
1002 | }
/host/spi-builder-workspace/Sources/Path.swift:1001:25: error: 'nil' requires a contextual type
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
| `- error: 'nil' requires a contextual type
1002 | }
1003 |
/host/spi-builder-workspace/Sources/Path.swift:1012:81: error: extra argument 'forUbiquityContainerIdentifier' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: extra argument 'forUbiquityContainerIdentifier' in call
1013 | return nil
1014 | }
/host/spi-builder-workspace/Sources/Path.swift:1012:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1013 | return nil
1014 | }
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1020:38: error: value of type 'FileManager' has no member 'isUbiquitousItem'
1018 | /// - Returns: a Boolean indicating whether the item is targeted for storage in iCloud.
1019 | public var isUbiquitousItem: Bool {
1020 | return _fmWraper.fileManager.isUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'isUbiquitousItem'
1021 | }
1022 |
/host/spi-builder-workspace/Sources/Path.swift:1026:46: error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1024 | public func evictUbiquitousItem() throws {
1025 | do {
1026 | return try _fmWraper.fileManager.evictUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1027 | } catch {
1028 | throw FileKitError.deleteFileFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: extra arguments at positions #1, #2 in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: extra arguments at positions #1, #2 in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1047:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1045 | public func setUbiquitous(destination: Path) throws {
1046 | do {
1047 | try _fmWraper.fileManager.setUbiquitous(true, itemAt: self.url, destinationURL: destination.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1048 | } catch {
1049 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1056:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1054 | public func unsetUbiquitous() throws {
1055 | do {
1056 | try _fmWraper.fileManager.setUbiquitous(false, itemAt: self.url, destinationURL: self.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1057 | } catch {
1058 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1064:35: error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1062 | /// Starts downloading (if necessary) the specified item to the local system.
1063 | func startDownloadingUbiquitous() throws {
1064 | try _fmWraper.fileManager.startDownloadingUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1065 | // TODO need to encapsulate error before exposing it
1066 | }
/host/spi-builder-workspace/Sources/Path.swift:1078:39: error: value of type 'FileManager' has no member 'containerURL'
1076 | /// - Parameter groupIdentifier: The group identifier.
1077 | public init?(groupIdentifier: String) {
1078 | guard let url = FileManager().containerURL(forSecurityApplicationGroupIdentifier: groupIdentifier) else {
| `- error: value of type 'FileManager' has no member 'containerURL'
1079 | return nil
1080 | }
[35/38] Compiling FileKit NSArray+FileKit.swift
/host/spi-builder-workspace/Sources/NSArray+FileKit.swift:36:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
34 | /// - Parameter path: The path an array to be read from.
35 | public class func read(from path: Path) throws -> Self {
36 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
37 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
38 | }
Foundation.NSArray.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSArray {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:34:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | /// Returns data read from the given path.
33 | public class func read(from path: Path) throws -> Self {
34 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
35 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSData.self))
36 | }
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSData {
2 | public init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
3 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:43:29: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
41 | public class func read(from path: Path, options: NSData.ReadingOptions) throws -> Self {
42 | do {
43 | return try self.init(contentsOfFile: path._safeRawValue, options: options)
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
44 | } catch {
45 | throw FileKitError.readFromFileFail(path: path, error: error)
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:options:)'
1 | class NSData {
2 | public init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws}
| `- note: selected non-required initializer 'init(contentsOfFile:options:)'
3 |
/host/spi-builder-workspace/Sources/NSDictionary+FileKit.swift:31:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
29 | /// Returns a dictionary read from the given path.
30 | public class func read(from path: Path) throws -> Self {
31 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
33 | }
Foundation.NSDictionary.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSDictionary {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
[36/38] Compiling FileKit NSData+FileKit.swift
/host/spi-builder-workspace/Sources/NSArray+FileKit.swift:36:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
34 | /// - Parameter path: The path an array to be read from.
35 | public class func read(from path: Path) throws -> Self {
36 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
37 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
38 | }
Foundation.NSArray.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSArray {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:34:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | /// Returns data read from the given path.
33 | public class func read(from path: Path) throws -> Self {
34 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
35 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSData.self))
36 | }
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSData {
2 | public init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
3 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:43:29: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
41 | public class func read(from path: Path, options: NSData.ReadingOptions) throws -> Self {
42 | do {
43 | return try self.init(contentsOfFile: path._safeRawValue, options: options)
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
44 | } catch {
45 | throw FileKitError.readFromFileFail(path: path, error: error)
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:options:)'
1 | class NSData {
2 | public init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws}
| `- note: selected non-required initializer 'init(contentsOfFile:options:)'
3 |
/host/spi-builder-workspace/Sources/NSDictionary+FileKit.swift:31:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
29 | /// Returns a dictionary read from the given path.
30 | public class func read(from path: Path) throws -> Self {
31 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
33 | }
Foundation.NSDictionary.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSDictionary {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
[37/38] Compiling FileKit NSDataFile.swift
/host/spi-builder-workspace/Sources/NSArray+FileKit.swift:36:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
34 | /// - Parameter path: The path an array to be read from.
35 | public class func read(from path: Path) throws -> Self {
36 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
37 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
38 | }
Foundation.NSArray.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSArray {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:34:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | /// Returns data read from the given path.
33 | public class func read(from path: Path) throws -> Self {
34 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
35 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSData.self))
36 | }
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSData {
2 | public init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
3 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:43:29: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
41 | public class func read(from path: Path, options: NSData.ReadingOptions) throws -> Self {
42 | do {
43 | return try self.init(contentsOfFile: path._safeRawValue, options: options)
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
44 | } catch {
45 | throw FileKitError.readFromFileFail(path: path, error: error)
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:options:)'
1 | class NSData {
2 | public init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws}
| `- note: selected non-required initializer 'init(contentsOfFile:options:)'
3 |
/host/spi-builder-workspace/Sources/NSDictionary+FileKit.swift:31:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
29 | /// Returns a dictionary read from the given path.
30 | public class func read(from path: Path) throws -> Self {
31 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
33 | }
Foundation.NSDictionary.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSDictionary {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
[38/38] Compiling FileKit NSDictionary+FileKit.swift
/host/spi-builder-workspace/Sources/NSArray+FileKit.swift:36:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
34 | /// - Parameter path: The path an array to be read from.
35 | public class func read(from path: Path) throws -> Self {
36 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
37 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
38 | }
Foundation.NSArray.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSArray {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:34:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | /// Returns data read from the given path.
33 | public class func read(from path: Path) throws -> Self {
34 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
35 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSData.self))
36 | }
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSData {
2 | public init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
3 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:43:29: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
41 | public class func read(from path: Path, options: NSData.ReadingOptions) throws -> Self {
42 | do {
43 | return try self.init(contentsOfFile: path._safeRawValue, options: options)
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
44 | } catch {
45 | throw FileKitError.readFromFileFail(path: path, error: error)
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:options:)'
1 | class NSData {
2 | public init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws}
| `- note: selected non-required initializer 'init(contentsOfFile:options:)'
3 |
/host/spi-builder-workspace/Sources/NSDictionary+FileKit.swift:31:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
29 | /// Returns a dictionary read from the given path.
30 | public class func read(from path: Path) throws -> Self {
31 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
33 | }
Foundation.NSDictionary.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSDictionary {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/33] Compiling FileKit FileProtection.swift
[3/33] Compiling FileKit FileSystemEvent.swift
[4/33] Compiling FileKit FileSystemEventStream.swift
[5/33] Compiling FileKit FileSystemWatcher.swift
[6/37] Compiling FileKit FileType.swift
[7/37] Compiling FileKit Image+FileKit.swift
[8/37] Compiling FileKit ImageFile.swift
[9/37] Compiling FileKit JSONType.swift
[10/37] Compiling FileKit NSArray+FileKit.swift
/host/spi-builder-workspace/Sources/NSArray+FileKit.swift:36:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
34 | /// - Parameter path: The path an array to be read from.
35 | public class func read(from path: Path) throws -> Self {
36 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
37 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
38 | }
Foundation.NSArray.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSArray {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:34:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | /// Returns data read from the given path.
33 | public class func read(from path: Path) throws -> Self {
34 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
35 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSData.self))
36 | }
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSData {
2 | public init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
3 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:43:29: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
41 | public class func read(from path: Path, options: NSData.ReadingOptions) throws -> Self {
42 | do {
43 | return try self.init(contentsOfFile: path._safeRawValue, options: options)
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
44 | } catch {
45 | throw FileKitError.readFromFileFail(path: path, error: error)
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:options:)'
1 | class NSData {
2 | public init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws}
| `- note: selected non-required initializer 'init(contentsOfFile:options:)'
3 |
/host/spi-builder-workspace/Sources/NSDictionary+FileKit.swift:31:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
29 | /// Returns a dictionary read from the given path.
30 | public class func read(from path: Path) throws -> Self {
31 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
33 | }
Foundation.NSDictionary.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSDictionary {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
[11/37] Compiling FileKit NSData+FileKit.swift
/host/spi-builder-workspace/Sources/NSArray+FileKit.swift:36:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
34 | /// - Parameter path: The path an array to be read from.
35 | public class func read(from path: Path) throws -> Self {
36 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
37 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
38 | }
Foundation.NSArray.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSArray {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:34:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | /// Returns data read from the given path.
33 | public class func read(from path: Path) throws -> Self {
34 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
35 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSData.self))
36 | }
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSData {
2 | public init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
3 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:43:29: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
41 | public class func read(from path: Path, options: NSData.ReadingOptions) throws -> Self {
42 | do {
43 | return try self.init(contentsOfFile: path._safeRawValue, options: options)
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
44 | } catch {
45 | throw FileKitError.readFromFileFail(path: path, error: error)
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:options:)'
1 | class NSData {
2 | public init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws}
| `- note: selected non-required initializer 'init(contentsOfFile:options:)'
3 |
/host/spi-builder-workspace/Sources/NSDictionary+FileKit.swift:31:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
29 | /// Returns a dictionary read from the given path.
30 | public class func read(from path: Path) throws -> Self {
31 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
33 | }
Foundation.NSDictionary.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSDictionary {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
[12/37] Compiling FileKit NSDataFile.swift
/host/spi-builder-workspace/Sources/NSArray+FileKit.swift:36:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
34 | /// - Parameter path: The path an array to be read from.
35 | public class func read(from path: Path) throws -> Self {
36 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
37 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
38 | }
Foundation.NSArray.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSArray {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:34:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | /// Returns data read from the given path.
33 | public class func read(from path: Path) throws -> Self {
34 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
35 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSData.self))
36 | }
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSData {
2 | public init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
3 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:43:29: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
41 | public class func read(from path: Path, options: NSData.ReadingOptions) throws -> Self {
42 | do {
43 | return try self.init(contentsOfFile: path._safeRawValue, options: options)
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
44 | } catch {
45 | throw FileKitError.readFromFileFail(path: path, error: error)
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:options:)'
1 | class NSData {
2 | public init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws}
| `- note: selected non-required initializer 'init(contentsOfFile:options:)'
3 |
/host/spi-builder-workspace/Sources/NSDictionary+FileKit.swift:31:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
29 | /// Returns a dictionary read from the given path.
30 | public class func read(from path: Path) throws -> Self {
31 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
33 | }
Foundation.NSDictionary.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSDictionary {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
[13/37] Compiling FileKit NSDictionary+FileKit.swift
/host/spi-builder-workspace/Sources/NSArray+FileKit.swift:36:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
34 | /// - Parameter path: The path an array to be read from.
35 | public class func read(from path: Path) throws -> Self {
36 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
37 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
38 | }
Foundation.NSArray.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSArray {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:34:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | /// Returns data read from the given path.
33 | public class func read(from path: Path) throws -> Self {
34 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
35 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSData.self))
36 | }
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSData {
2 | public init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
3 |
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:43:29: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
41 | public class func read(from path: Path, options: NSData.ReadingOptions) throws -> Self {
42 | do {
43 | return try self.init(contentsOfFile: path._safeRawValue, options: options)
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
44 | } catch {
45 | throw FileKitError.readFromFileFail(path: path, error: error)
Foundation.NSData.init:2:8: note: selected non-required initializer 'init(contentsOfFile:options:)'
1 | class NSData {
2 | public init(contentsOfFile path: String, options readOptionsMask: NSData.ReadingOptions = []) throws}
| `- note: selected non-required initializer 'init(contentsOfFile:options:)'
3 |
/host/spi-builder-workspace/Sources/NSDictionary+FileKit.swift:31:35: error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
29 | /// Returns a dictionary read from the given path.
30 | public class func read(from path: Path) throws -> Self {
31 | guard let contents = self.init(contentsOfFile: path._safeRawValue) else {
| `- error: constructing an object of class type 'Self' with a metatype value must use a 'required' initializer
32 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
33 | }
Foundation.NSDictionary.init:3:22: note: selected non-required initializer 'init(contentsOfFile:)'
1 | class NSDictionary {
2 | @available(*, deprecated)
3 | public convenience init?(contentsOfFile path: String)}
| `- note: selected non-required initializer 'init(contentsOfFile:)'
4 |
[14/37] Compiling FileKit DispatchWatcher.swift
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:235:59: error: cannot find 'O_EVTONLY' in scope
233 |
234 | if source == nil && fileDescriptor == -1 {
235 | fileDescriptor = open(path._safeRawValue, O_EVTONLY)
| `- error: cannot find 'O_EVTONLY' in scope
236 | if fileDescriptor == -1 { return false }
237 | var _events = events
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:239:41: error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
237 | var _events = events
238 | _events.remove(.Create)
239 | source = DispatchSource.makeFileSystemObjectSource(fileDescriptor: fileDescriptor, eventMask: DispatchSource.FileSystemEvent(rawValue: _events.rawValue), queue: queue)
| `- error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
240 |
241 | // Recheck if open success and source create success
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:255:29: error: cannot find 'Darwin' in scope
253 | // Define a cancel handler to ensure the path is closed when the source is cancelled.
254 | source!.setCancelHandler { // [unowned self] () in
255 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
256 | self.fileDescriptor = -1
257 | self.source = nil
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:282:13: error: cannot find 'Darwin' in scope
280 | open func close() {
281 | createWatcher?.stopWatching()
282 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
283 | self.fileDescriptor = -1
284 | self.source = nil
[15/37] Compiling FileKit File.swift
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:235:59: error: cannot find 'O_EVTONLY' in scope
233 |
234 | if source == nil && fileDescriptor == -1 {
235 | fileDescriptor = open(path._safeRawValue, O_EVTONLY)
| `- error: cannot find 'O_EVTONLY' in scope
236 | if fileDescriptor == -1 { return false }
237 | var _events = events
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:239:41: error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
237 | var _events = events
238 | _events.remove(.Create)
239 | source = DispatchSource.makeFileSystemObjectSource(fileDescriptor: fileDescriptor, eventMask: DispatchSource.FileSystemEvent(rawValue: _events.rawValue), queue: queue)
| `- error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
240 |
241 | // Recheck if open success and source create success
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:255:29: error: cannot find 'Darwin' in scope
253 | // Define a cancel handler to ensure the path is closed when the source is cancelled.
254 | source!.setCancelHandler { // [unowned self] () in
255 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
256 | self.fileDescriptor = -1
257 | self.source = nil
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:282:13: error: cannot find 'Darwin' in scope
280 | open func close() {
281 | createWatcher?.stopWatching()
282 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
283 | self.fileDescriptor = -1
284 | self.source = nil
[16/37] Compiling FileKit FileKit.swift
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:235:59: error: cannot find 'O_EVTONLY' in scope
233 |
234 | if source == nil && fileDescriptor == -1 {
235 | fileDescriptor = open(path._safeRawValue, O_EVTONLY)
| `- error: cannot find 'O_EVTONLY' in scope
236 | if fileDescriptor == -1 { return false }
237 | var _events = events
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:239:41: error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
237 | var _events = events
238 | _events.remove(.Create)
239 | source = DispatchSource.makeFileSystemObjectSource(fileDescriptor: fileDescriptor, eventMask: DispatchSource.FileSystemEvent(rawValue: _events.rawValue), queue: queue)
| `- error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
240 |
241 | // Recheck if open success and source create success
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:255:29: error: cannot find 'Darwin' in scope
253 | // Define a cancel handler to ensure the path is closed when the source is cancelled.
254 | source!.setCancelHandler { // [unowned self] () in
255 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
256 | self.fileDescriptor = -1
257 | self.source = nil
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:282:13: error: cannot find 'Darwin' in scope
280 | open func close() {
281 | createWatcher?.stopWatching()
282 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
283 | self.fileDescriptor = -1
284 | self.source = nil
[17/37] Compiling FileKit FileKitError.swift
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:235:59: error: cannot find 'O_EVTONLY' in scope
233 |
234 | if source == nil && fileDescriptor == -1 {
235 | fileDescriptor = open(path._safeRawValue, O_EVTONLY)
| `- error: cannot find 'O_EVTONLY' in scope
236 | if fileDescriptor == -1 { return false }
237 | var _events = events
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:239:41: error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
237 | var _events = events
238 | _events.remove(.Create)
239 | source = DispatchSource.makeFileSystemObjectSource(fileDescriptor: fileDescriptor, eventMask: DispatchSource.FileSystemEvent(rawValue: _events.rawValue), queue: queue)
| `- error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
240 |
241 | // Recheck if open success and source create success
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:255:29: error: cannot find 'Darwin' in scope
253 | // Define a cancel handler to ensure the path is closed when the source is cancelled.
254 | source!.setCancelHandler { // [unowned self] () in
255 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
256 | self.fileDescriptor = -1
257 | self.source = nil
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:282:13: error: cannot find 'Darwin' in scope
280 | open func close() {
281 | createWatcher?.stopWatching()
282 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
283 | self.fileDescriptor = -1
284 | self.source = nil
[18/37] Compiling FileKit FilePermissions.swift
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:235:59: error: cannot find 'O_EVTONLY' in scope
233 |
234 | if source == nil && fileDescriptor == -1 {
235 | fileDescriptor = open(path._safeRawValue, O_EVTONLY)
| `- error: cannot find 'O_EVTONLY' in scope
236 | if fileDescriptor == -1 { return false }
237 | var _events = events
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:239:41: error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
237 | var _events = events
238 | _events.remove(.Create)
239 | source = DispatchSource.makeFileSystemObjectSource(fileDescriptor: fileDescriptor, eventMask: DispatchSource.FileSystemEvent(rawValue: _events.rawValue), queue: queue)
| `- error: type 'DispatchSource' has no member 'makeFileSystemObjectSource'
240 |
241 | // Recheck if open success and source create success
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:255:29: error: cannot find 'Darwin' in scope
253 | // Define a cancel handler to ensure the path is closed when the source is cancelled.
254 | source!.setCancelHandler { // [unowned self] () in
255 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
256 | self.fileDescriptor = -1
257 | self.source = nil
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:282:13: error: cannot find 'Darwin' in scope
280 | open func close() {
281 | createWatcher?.stopWatching()
282 | _ = Darwin.close(self.fileDescriptor)
| `- error: cannot find 'Darwin' in scope
283 | self.fileDescriptor = -1
284 | self.source = nil
[19/37] Compiling FileKit Array+File.swift
/host/spi-builder-workspace/Sources/Array+File.swift:39:30: warning: 'init(contentsOfFile:)' is deprecated
37 | ///
38 | public static func read(from path: Path) throws -> Array {
39 | guard let contents = NSArray(contentsOfFile: path._safeRawValue) else {
| `- warning: 'init(contentsOfFile:)' is deprecated
40 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
41 | }
[20/37] Compiling FileKit ArrayFile.swift
/host/spi-builder-workspace/Sources/Array+File.swift:39:30: warning: 'init(contentsOfFile:)' is deprecated
37 | ///
38 | public static func read(from path: Path) throws -> Array {
39 | guard let contents = NSArray(contentsOfFile: path._safeRawValue) else {
| `- warning: 'init(contentsOfFile:)' is deprecated
40 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
41 | }
[21/37] Compiling FileKit Bundle+FileKit.swift
/host/spi-builder-workspace/Sources/Array+File.swift:39:30: warning: 'init(contentsOfFile:)' is deprecated
37 | ///
38 | public static func read(from path: Path) throws -> Array {
39 | guard let contents = NSArray(contentsOfFile: path._safeRawValue) else {
| `- warning: 'init(contentsOfFile:)' is deprecated
40 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
41 | }
[22/37] Compiling FileKit Data+FileKit.swift
/host/spi-builder-workspace/Sources/Array+File.swift:39:30: warning: 'init(contentsOfFile:)' is deprecated
37 | ///
38 | public static func read(from path: Path) throws -> Array {
39 | guard let contents = NSArray(contentsOfFile: path._safeRawValue) else {
| `- warning: 'init(contentsOfFile:)' is deprecated
40 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
41 | }
[23/37] Compiling FileKit DataFile.swift
/host/spi-builder-workspace/Sources/Array+File.swift:39:30: warning: 'init(contentsOfFile:)' is deprecated
37 | ///
38 | public static func read(from path: Path) throws -> Array {
39 | guard let contents = NSArray(contentsOfFile: path._safeRawValue) else {
| `- warning: 'init(contentsOfFile:)' is deprecated
40 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSArray.self))
41 | }
[24/37] Emitting module FileKit
/host/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation.init:2:1: note: requirement 'init(stringInterpolation:)' declared here
1 | protocol ExpressibleByStringInterpolation {
2 | init(stringInterpolation: Self.StringInterpolation)}
| `- note: requirement 'init(stringInterpolation:)' declared here
3 |
[25/37] Compiling FileKit DataType.swift
/host/spi-builder-workspace/Sources/Dictionary+File.swift:39:30: warning: 'init(contentsOfFile:)' is deprecated
37 | ///
38 | public static func read(from path: Path) throws -> Dictionary {
39 | guard let contents = NSDictionary(contentsOfFile: path._safeRawValue) else {
| `- warning: 'init(contentsOfFile:)' is deprecated
40 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
41 | }
[26/37] Compiling FileKit Dictionary+File.swift
/host/spi-builder-workspace/Sources/Dictionary+File.swift:39:30: warning: 'init(contentsOfFile:)' is deprecated
37 | ///
38 | public static func read(from path: Path) throws -> Dictionary {
39 | guard let contents = NSDictionary(contentsOfFile: path._safeRawValue) else {
| `- warning: 'init(contentsOfFile:)' is deprecated
40 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
41 | }
[27/37] Compiling FileKit DictionaryFile.swift
/host/spi-builder-workspace/Sources/Dictionary+File.swift:39:30: warning: 'init(contentsOfFile:)' is deprecated
37 | ///
38 | public static func read(from path: Path) throws -> Dictionary {
39 | guard let contents = NSDictionary(contentsOfFile: path._safeRawValue) else {
| `- warning: 'init(contentsOfFile:)' is deprecated
40 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
41 | }
[28/37] Compiling FileKit DirectoryEnumerator.swift
/host/spi-builder-workspace/Sources/Dictionary+File.swift:39:30: warning: 'init(contentsOfFile:)' is deprecated
37 | ///
38 | public static func read(from path: Path) throws -> Dictionary {
39 | guard let contents = NSDictionary(contentsOfFile: path._safeRawValue) else {
| `- warning: 'init(contentsOfFile:)' is deprecated
40 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
41 | }
[29/37] Compiling FileKit DispatchEvent.swift
/host/spi-builder-workspace/Sources/Dictionary+File.swift:39:30: warning: 'init(contentsOfFile:)' is deprecated
37 | ///
38 | public static func read(from path: Path) throws -> Dictionary {
39 | guard let contents = NSDictionary(contentsOfFile: path._safeRawValue) else {
| `- warning: 'init(contentsOfFile:)' is deprecated
40 | throw FileKitError.readFromFileFail(path: path, error: FileKitError.ReasonError.conversion(NSDictionary.self))
41 | }
[30/37] Compiling FileKit NSString+FileKit.swift
/host/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation.init:2:1: note: requirement 'init(stringInterpolation:)' declared here
1 | protocol ExpressibleByStringInterpolation {
2 | init(stringInterpolation: Self.StringInterpolation)}
| `- note: requirement 'init(stringInterpolation:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:53:33: warning: result of call to 'changeCurrentDirectoryPath' is unused
51 | }
52 | set {
53 | FileManager.default.changeCurrentDirectoryPath(newValue._safeRawValue)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
54 | }
55 | }
/host/spi-builder-workspace/Sources/Path.swift:985:25: error: no exact matches in call to initializer
983 | public init?(bookmarkData bookData: Data) {
984 | var isStale: ObjCBool = false
985 | let url = try? (NSURL(
| |- error: no exact matches in call to initializer
| |- note: candidate has partially matching parameter list (fileURLWithPath: String, relativeTo: URL?)
| |- note: candidate has partially matching parameter list (dataRepresentation: Data, relativeTo: URL?)
| `- note: candidate has partially matching parameter list (absoluteURLWithDataRepresentation: Data, relativeTo: URL?)
986 | resolvingBookmarkData: bookData,
987 | options: [],
/host/spi-builder-workspace/Sources/Path.swift:998:25: error: value of type 'URL' has no member 'bookmarkData'
996 | /// - Returns: The `Path` objects bookmarkData.
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
| `- error: value of type 'URL' has no member 'bookmarkData'
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
/host/spi-builder-workspace/Sources/Path.swift:999:23: error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
| `- error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
/host/spi-builder-workspace/Sources/Path.swift:1000:45: error: 'nil' requires a contextual type
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
| `- error: 'nil' requires a contextual type
1001 | relativeTo: nil)
1002 | }
/host/spi-builder-workspace/Sources/Path.swift:1001:25: error: 'nil' requires a contextual type
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
| `- error: 'nil' requires a contextual type
1002 | }
1003 |
/host/spi-builder-workspace/Sources/Path.swift:1012:81: error: extra argument 'forUbiquityContainerIdentifier' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: extra argument 'forUbiquityContainerIdentifier' in call
1013 | return nil
1014 | }
/host/spi-builder-workspace/Sources/Path.swift:1012:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1013 | return nil
1014 | }
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1020:38: error: value of type 'FileManager' has no member 'isUbiquitousItem'
1018 | /// - Returns: a Boolean indicating whether the item is targeted for storage in iCloud.
1019 | public var isUbiquitousItem: Bool {
1020 | return _fmWraper.fileManager.isUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'isUbiquitousItem'
1021 | }
1022 |
/host/spi-builder-workspace/Sources/Path.swift:1026:46: error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1024 | public func evictUbiquitousItem() throws {
1025 | do {
1026 | return try _fmWraper.fileManager.evictUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1027 | } catch {
1028 | throw FileKitError.deleteFileFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: extra arguments at positions #1, #2 in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: extra arguments at positions #1, #2 in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1047:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1045 | public func setUbiquitous(destination: Path) throws {
1046 | do {
1047 | try _fmWraper.fileManager.setUbiquitous(true, itemAt: self.url, destinationURL: destination.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1048 | } catch {
1049 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1056:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1054 | public func unsetUbiquitous() throws {
1055 | do {
1056 | try _fmWraper.fileManager.setUbiquitous(false, itemAt: self.url, destinationURL: self.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1057 | } catch {
1058 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1064:35: error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1062 | /// Starts downloading (if necessary) the specified item to the local system.
1063 | func startDownloadingUbiquitous() throws {
1064 | try _fmWraper.fileManager.startDownloadingUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1065 | // TODO need to encapsulate error before exposing it
1066 | }
/host/spi-builder-workspace/Sources/Path.swift:1078:39: error: value of type 'FileManager' has no member 'containerURL'
1076 | /// - Parameter groupIdentifier: The group identifier.
1077 | public init?(groupIdentifier: String) {
1078 | guard let url = FileManager().containerURL(forSecurityApplicationGroupIdentifier: groupIdentifier) else {
| `- error: value of type 'FileManager' has no member 'containerURL'
1079 | return nil
1080 | }
[31/37] Compiling FileKit Operators.swift
/host/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation.init:2:1: note: requirement 'init(stringInterpolation:)' declared here
1 | protocol ExpressibleByStringInterpolation {
2 | init(stringInterpolation: Self.StringInterpolation)}
| `- note: requirement 'init(stringInterpolation:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:53:33: warning: result of call to 'changeCurrentDirectoryPath' is unused
51 | }
52 | set {
53 | FileManager.default.changeCurrentDirectoryPath(newValue._safeRawValue)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
54 | }
55 | }
/host/spi-builder-workspace/Sources/Path.swift:985:25: error: no exact matches in call to initializer
983 | public init?(bookmarkData bookData: Data) {
984 | var isStale: ObjCBool = false
985 | let url = try? (NSURL(
| |- error: no exact matches in call to initializer
| |- note: candidate has partially matching parameter list (fileURLWithPath: String, relativeTo: URL?)
| |- note: candidate has partially matching parameter list (dataRepresentation: Data, relativeTo: URL?)
| `- note: candidate has partially matching parameter list (absoluteURLWithDataRepresentation: Data, relativeTo: URL?)
986 | resolvingBookmarkData: bookData,
987 | options: [],
/host/spi-builder-workspace/Sources/Path.swift:998:25: error: value of type 'URL' has no member 'bookmarkData'
996 | /// - Returns: The `Path` objects bookmarkData.
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
| `- error: value of type 'URL' has no member 'bookmarkData'
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
/host/spi-builder-workspace/Sources/Path.swift:999:23: error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
| `- error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
/host/spi-builder-workspace/Sources/Path.swift:1000:45: error: 'nil' requires a contextual type
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
| `- error: 'nil' requires a contextual type
1001 | relativeTo: nil)
1002 | }
/host/spi-builder-workspace/Sources/Path.swift:1001:25: error: 'nil' requires a contextual type
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
| `- error: 'nil' requires a contextual type
1002 | }
1003 |
/host/spi-builder-workspace/Sources/Path.swift:1012:81: error: extra argument 'forUbiquityContainerIdentifier' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: extra argument 'forUbiquityContainerIdentifier' in call
1013 | return nil
1014 | }
/host/spi-builder-workspace/Sources/Path.swift:1012:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1013 | return nil
1014 | }
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1020:38: error: value of type 'FileManager' has no member 'isUbiquitousItem'
1018 | /// - Returns: a Boolean indicating whether the item is targeted for storage in iCloud.
1019 | public var isUbiquitousItem: Bool {
1020 | return _fmWraper.fileManager.isUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'isUbiquitousItem'
1021 | }
1022 |
/host/spi-builder-workspace/Sources/Path.swift:1026:46: error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1024 | public func evictUbiquitousItem() throws {
1025 | do {
1026 | return try _fmWraper.fileManager.evictUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1027 | } catch {
1028 | throw FileKitError.deleteFileFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: extra arguments at positions #1, #2 in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: extra arguments at positions #1, #2 in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1047:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1045 | public func setUbiquitous(destination: Path) throws {
1046 | do {
1047 | try _fmWraper.fileManager.setUbiquitous(true, itemAt: self.url, destinationURL: destination.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1048 | } catch {
1049 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1056:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1054 | public func unsetUbiquitous() throws {
1055 | do {
1056 | try _fmWraper.fileManager.setUbiquitous(false, itemAt: self.url, destinationURL: self.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1057 | } catch {
1058 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1064:35: error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1062 | /// Starts downloading (if necessary) the specified item to the local system.
1063 | func startDownloadingUbiquitous() throws {
1064 | try _fmWraper.fileManager.startDownloadingUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1065 | // TODO need to encapsulate error before exposing it
1066 | }
/host/spi-builder-workspace/Sources/Path.swift:1078:39: error: value of type 'FileManager' has no member 'containerURL'
1076 | /// - Parameter groupIdentifier: The group identifier.
1077 | public init?(groupIdentifier: String) {
1078 | guard let url = FileManager().containerURL(forSecurityApplicationGroupIdentifier: groupIdentifier) else {
| `- error: value of type 'FileManager' has no member 'containerURL'
1079 | return nil
1080 | }
[32/37] Compiling FileKit Path.swift
/host/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation.init:2:1: note: requirement 'init(stringInterpolation:)' declared here
1 | protocol ExpressibleByStringInterpolation {
2 | init(stringInterpolation: Self.StringInterpolation)}
| `- note: requirement 'init(stringInterpolation:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:53:33: warning: result of call to 'changeCurrentDirectoryPath' is unused
51 | }
52 | set {
53 | FileManager.default.changeCurrentDirectoryPath(newValue._safeRawValue)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
54 | }
55 | }
/host/spi-builder-workspace/Sources/Path.swift:985:25: error: no exact matches in call to initializer
983 | public init?(bookmarkData bookData: Data) {
984 | var isStale: ObjCBool = false
985 | let url = try? (NSURL(
| |- error: no exact matches in call to initializer
| |- note: candidate has partially matching parameter list (fileURLWithPath: String, relativeTo: URL?)
| |- note: candidate has partially matching parameter list (dataRepresentation: Data, relativeTo: URL?)
| `- note: candidate has partially matching parameter list (absoluteURLWithDataRepresentation: Data, relativeTo: URL?)
986 | resolvingBookmarkData: bookData,
987 | options: [],
/host/spi-builder-workspace/Sources/Path.swift:998:25: error: value of type 'URL' has no member 'bookmarkData'
996 | /// - Returns: The `Path` objects bookmarkData.
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
| `- error: value of type 'URL' has no member 'bookmarkData'
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
/host/spi-builder-workspace/Sources/Path.swift:999:23: error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
| `- error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
/host/spi-builder-workspace/Sources/Path.swift:1000:45: error: 'nil' requires a contextual type
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
| `- error: 'nil' requires a contextual type
1001 | relativeTo: nil)
1002 | }
/host/spi-builder-workspace/Sources/Path.swift:1001:25: error: 'nil' requires a contextual type
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
| `- error: 'nil' requires a contextual type
1002 | }
1003 |
/host/spi-builder-workspace/Sources/Path.swift:1012:81: error: extra argument 'forUbiquityContainerIdentifier' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: extra argument 'forUbiquityContainerIdentifier' in call
1013 | return nil
1014 | }
/host/spi-builder-workspace/Sources/Path.swift:1012:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1013 | return nil
1014 | }
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1020:38: error: value of type 'FileManager' has no member 'isUbiquitousItem'
1018 | /// - Returns: a Boolean indicating whether the item is targeted for storage in iCloud.
1019 | public var isUbiquitousItem: Bool {
1020 | return _fmWraper.fileManager.isUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'isUbiquitousItem'
1021 | }
1022 |
/host/spi-builder-workspace/Sources/Path.swift:1026:46: error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1024 | public func evictUbiquitousItem() throws {
1025 | do {
1026 | return try _fmWraper.fileManager.evictUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1027 | } catch {
1028 | throw FileKitError.deleteFileFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: extra arguments at positions #1, #2 in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: extra arguments at positions #1, #2 in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1047:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1045 | public func setUbiquitous(destination: Path) throws {
1046 | do {
1047 | try _fmWraper.fileManager.setUbiquitous(true, itemAt: self.url, destinationURL: destination.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1048 | } catch {
1049 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1056:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1054 | public func unsetUbiquitous() throws {
1055 | do {
1056 | try _fmWraper.fileManager.setUbiquitous(false, itemAt: self.url, destinationURL: self.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1057 | } catch {
1058 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1064:35: error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1062 | /// Starts downloading (if necessary) the specified item to the local system.
1063 | func startDownloadingUbiquitous() throws {
1064 | try _fmWraper.fileManager.startDownloadingUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1065 | // TODO need to encapsulate error before exposing it
1066 | }
/host/spi-builder-workspace/Sources/Path.swift:1078:39: error: value of type 'FileManager' has no member 'containerURL'
1076 | /// - Parameter groupIdentifier: The group identifier.
1077 | public init?(groupIdentifier: String) {
1078 | guard let url = FileManager().containerURL(forSecurityApplicationGroupIdentifier: groupIdentifier) else {
| `- error: value of type 'FileManager' has no member 'containerURL'
1079 | return nil
1080 | }
[33/37] Compiling FileKit Process+FileKit.swift
/host/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation.init:2:1: note: requirement 'init(stringInterpolation:)' declared here
1 | protocol ExpressibleByStringInterpolation {
2 | init(stringInterpolation: Self.StringInterpolation)}
| `- note: requirement 'init(stringInterpolation:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:53:33: warning: result of call to 'changeCurrentDirectoryPath' is unused
51 | }
52 | set {
53 | FileManager.default.changeCurrentDirectoryPath(newValue._safeRawValue)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
54 | }
55 | }
/host/spi-builder-workspace/Sources/Path.swift:985:25: error: no exact matches in call to initializer
983 | public init?(bookmarkData bookData: Data) {
984 | var isStale: ObjCBool = false
985 | let url = try? (NSURL(
| |- error: no exact matches in call to initializer
| |- note: candidate has partially matching parameter list (fileURLWithPath: String, relativeTo: URL?)
| |- note: candidate has partially matching parameter list (dataRepresentation: Data, relativeTo: URL?)
| `- note: candidate has partially matching parameter list (absoluteURLWithDataRepresentation: Data, relativeTo: URL?)
986 | resolvingBookmarkData: bookData,
987 | options: [],
/host/spi-builder-workspace/Sources/Path.swift:998:25: error: value of type 'URL' has no member 'bookmarkData'
996 | /// - Returns: The `Path` objects bookmarkData.
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
| `- error: value of type 'URL' has no member 'bookmarkData'
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
/host/spi-builder-workspace/Sources/Path.swift:999:23: error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
997 | public var bookmarkData: Data? {
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
| `- error: cannot infer contextual base in reference to member 'suitableForBookmarkFile'
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
/host/spi-builder-workspace/Sources/Path.swift:1000:45: error: 'nil' requires a contextual type
998 | return try? url.bookmarkData(
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
| `- error: 'nil' requires a contextual type
1001 | relativeTo: nil)
1002 | }
/host/spi-builder-workspace/Sources/Path.swift:1001:25: error: 'nil' requires a contextual type
999 | options: .suitableForBookmarkFile,
1000 | includingResourceValuesForKeys: nil,
1001 | relativeTo: nil)
| `- error: 'nil' requires a contextual type
1002 | }
1003 |
/host/spi-builder-workspace/Sources/Path.swift:1012:81: error: extra argument 'forUbiquityContainerIdentifier' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: extra argument 'forUbiquityContainerIdentifier' in call
1013 | return nil
1014 | }
/host/spi-builder-workspace/Sources/Path.swift:1012:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1010 | /// Create a path for the iCloud container associated with the specified identifier and establishes access to that container.
1011 | public init?(ubiquityContainerIdentifier containerIdentifier: String) {
1012 | guard let url = FileManager.default.url(forUbiquityContainerIdentifier: containerIdentifier) else {
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1013 | return nil
1014 | }
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1020:38: error: value of type 'FileManager' has no member 'isUbiquitousItem'
1018 | /// - Returns: a Boolean indicating whether the item is targeted for storage in iCloud.
1019 | public var isUbiquitousItem: Bool {
1020 | return _fmWraper.fileManager.isUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'isUbiquitousItem'
1021 | }
1022 |
/host/spi-builder-workspace/Sources/Path.swift:1026:46: error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1024 | public func evictUbiquitousItem() throws {
1025 | do {
1026 | return try _fmWraper.fileManager.evictUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'evictUbiquitousItem'
1027 | } catch {
1028 | throw FileKitError.deleteFileFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: extra arguments at positions #1, #2 in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: extra arguments at positions #1, #2 in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1036:48: error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1034 | func publicUbiquitousURL() throws -> (URL, Date?) {
1035 | var expiration: NSDate?
1036 | let url = try _fmWraper.fileManager.url(forPublishingUbiquitousItemAt: self.url, expiration: &expiration)
| `- error: missing arguments for parameters 'for', 'in', 'appropriateFor', 'create' in call
1037 | guard let date = expiration else {
1038 | return (url, nil)
Foundation.FileManager.url:2:13: note: 'url(for:in:appropriateFor:create:)' declared here
1 | class FileManager {
2 | public func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL}
| `- note: 'url(for:in:appropriateFor:create:)' declared here
3 |
/host/spi-builder-workspace/Sources/Path.swift:1047:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1045 | public func setUbiquitous(destination: Path) throws {
1046 | do {
1047 | try _fmWraper.fileManager.setUbiquitous(true, itemAt: self.url, destinationURL: destination.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1048 | } catch {
1049 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1056:39: error: value of type 'FileManager' has no member 'setUbiquitous'
1054 | public func unsetUbiquitous() throws {
1055 | do {
1056 | try _fmWraper.fileManager.setUbiquitous(false, itemAt: self.url, destinationURL: self.url)
| `- error: value of type 'FileManager' has no member 'setUbiquitous'
1057 | } catch {
1058 | throw FileKitError.attributesChangeFail(path: self, error: error)
/host/spi-builder-workspace/Sources/Path.swift:1064:35: error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1062 | /// Starts downloading (if necessary) the specified item to the local system.
1063 | func startDownloadingUbiquitous() throws {
1064 | try _fmWraper.fileManager.startDownloadingUbiquitousItem(at: self.url)
| `- error: value of type 'FileManager' has no member 'startDownloadingUbiquitousItem'
1065 | // TODO need to encapsulate error before exposing it
1066 | }
/host/spi-builder-workspace/Sources/Path.swift:1078:39: error: value of type 'FileManager' has no member 'containerURL'
1076 | /// - Parameter groupIdentifier: The group identifier.
1077 | public init?(groupIdentifier: String) {
1078 | guard let url = FileManager().containerURL(forSecurityApplicationGroupIdentifier: groupIdentifier) else {
| `- error: value of type 'FileManager' has no member 'containerURL'
1079 | return nil
1080 | }
[34/37] Compiling FileKit PropertyListType.swift
[35/37] Compiling FileKit RelativePathType.swift
[36/37] Compiling FileKit String+FileKit.swift
[37/37] Compiling FileKit TextFile.swift
BUILD FAILURE 6.1 linux