Build Information
Failed to build swift-shell, reference v0.1.2 (96ab21
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 15:47:47 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/darrarski/swift-shell.git
Reference: v0.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/darrarski/swift-shell
* tag v0.1.2 -> FETCH_HEAD
HEAD is now at 96ab219 Fix package manifest (#2)
Cloned https://github.com/darrarski/swift-shell.git
Revision (git rev-parse @):
96ab21989405780333e8a7b690a46fa4b28548e9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/darrarski/swift-shell.git at v0.1.2
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-custom-dump.git
Fetching https://github.com/pointfreeco/swift-concurrency-extras.git
[1/758] Fetching swift-concurrency-extras
[108/5269] Fetching swift-concurrency-extras, swift-custom-dump
[1680/10254] Fetching swift-concurrency-extras, swift-custom-dump, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-concurrency-extras.git from cache (6.22s)
Fetched https://github.com/pointfreeco/swift-custom-dump.git from cache (6.22s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (6.22s)
Computing version for https://github.com/pointfreeco/swift-custom-dump.git
Computed https://github.com/pointfreeco/swift-custom-dump.git at 1.3.0 (3.28s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras.git
Computed https://github.com/pointfreeco/swift-concurrency-extras.git at 1.1.0 (0.64s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.1.2 (0.65s)
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras.git
Working copy of https://github.com/pointfreeco/swift-concurrency-extras.git resolved at 1.1.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump.git
Working copy of https://github.com/pointfreeco/swift-custom-dump.git resolved at 1.3.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.1.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-shell",
"name": "swift-shell",
"url": "https://github.com/darrarski/swift-shell.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-shell",
"dependencies": [
]
}
]
}
Fetching https://github.com/darrarski/swift-shell.git
[1/149] Fetching swift-shell
Fetched https://github.com/darrarski/swift-shell.git from cache (0.94s)
Creating working copy for https://github.com/darrarski/swift-shell.git
Working copy of https://github.com/darrarski/swift-shell.git resolved at v0.1.2 (96ab219)
warning: '.resolve-product-dependencies': dependency 'swift-shell' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/darrarski/swift-shell.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling SwiftShell ShellProcess.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:19:10: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
17 | /// - currentDirectoryURL: Working directory for the executable.
18 | /// - qualityOfService: Quality of service class applied to the process.
19 | public init(
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
20 | executableURL: URL,
21 | arguments: [String]? = nil,
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:97:61: error: var 'EXIT_SUCCESS' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: var 'EXIT_SUCCESS' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
95 | @discardableResult
96 | public func waitUntilExit(
97 | validate isSuccess: @Sendable (Int32) -> Bool = { $0 == EXIT_SUCCESS }
| `- error: var 'EXIT_SUCCESS' is internal and cannot be referenced from a default argument value
98 | ) throws -> Int32 {
99 | process.waitUntilExit()
_stdlib.EXIT_SUCCESS:1:12: note: var 'EXIT_SUCCESS' is not '@usableFromInline' or public
1 | public var EXIT_SUCCESS: Int32 { get }
| `- note: var 'EXIT_SUCCESS' is not '@usableFromInline' or public
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:97:61: error: getter for var 'EXIT_SUCCESS' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: getter for var 'EXIT_SUCCESS' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
95 | @discardableResult
96 | public func waitUntilExit(
97 | validate isSuccess: @Sendable (Int32) -> Bool = { $0 == EXIT_SUCCESS }
| `- error: getter for var 'EXIT_SUCCESS' is internal and cannot be referenced from a default argument value
98 | ) throws -> Int32 {
99 | process.waitUntilExit()
_stdlib._:1:1: note: getter for var 'EXIT_SUCCESS' is not '@usableFromInline' or public
1 | get
| `- note: getter for var 'EXIT_SUCCESS' is not '@usableFromInline' or public
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:127:15: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
125 | ///
126 | /// - Parameter data: Input data.
127 | public func send(input data: Data) throws {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
128 | guard isRunning else { throw InputError.processIsNotRunning }
129 | try inputPipe.fileHandleForWriting.write(contentsOf: data)
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:142:15: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
140 | ///
141 | /// - Returns: Standard output data.
142 | public func output() throws -> Data? {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
143 | try outputPipe.fileHandleForReading.readToEnd()
144 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:151:27: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
149 | ///
150 | /// - Returns: Async stream of standard output data.
151 | public nonisolated func outputStream() -> AsyncStream<Data> {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
152 | AsyncStream {
153 | let data = self.outputPipe.fileHandleForReading.availableData
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:161:15: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
159 | ///
160 | /// - Returns: Standard error data.
161 | public func error() throws -> Data? {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
162 | try errorPipe.fileHandleForReading.readToEnd()
163 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:170:27: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
168 | ///
169 | /// - Returns: Async stream of standard error data.
170 | public nonisolated func errorStream() -> AsyncStream<Data> {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
171 | AsyncStream {
172 | let data = self.errorPipe.fileHandleForReading.availableData
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:189:10: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
187 | /// - currentDirectoryURL: Working directory for the executable.
188 | /// - qualityOfService: Quality of service class applied to the process.
189 | public init(
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
190 | _ command: ShellCommand,
191 | currentDirectoryURL: URL? = nil,
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Compiling SwiftShell ShellEnvironment.swift
[5/7] Compiling SwiftShell ShellCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellCommand.swift:17:10: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Shell command representation.
:
15 | /// - workingDirectory: Working directory for the executable.
16 | /// - qualityOfService: Quality of service level applied to the process.
17 | public init(
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
18 | executableURL: URL,
19 | arguments: [String] = [],
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellCommand.swift:32:14: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Shell command representation.
:
30 |
31 | /// URL represening path to the executable.
32 | public var executableURL: URL
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
33 |
34 | /// The command arguments used to launch the executable.
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellCommand.swift:43:14: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Shell command representation.
:
41 | ///
42 | /// If `nil` (default), the current working directory will be used.
43 | public var workingDirectory: URL?
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
44 |
45 | /// Quality of service level applied to the process.
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellCommand.swift:48:14: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: enum 'QualityOfService' imported as 'internal' from 'Foundation' here
2 |
3 | /// Shell command representation.
:
46 | ///
47 | /// If `nil`, a default QoS will be used.
48 | public var qualityOfService: QualityOfService?
| |- error: property cannot be declared public because its type uses an internal type
| `- note: enum 'QualityOfService' is imported by this file as 'internal' from 'Foundation'
49 | }
50 |
Foundation.QualityOfService:2:13: note: type declared here
1 | @available(macOS 10.10, *)
2 | public enum QualityOfService : Int, @unchecked Sendable {
| `- note: type declared here
3 | public init?(rawValue: Int)
4 | public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellCommand.swift:63:10: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: enum 'QualityOfService' imported as 'internal' from 'Foundation' here
2 |
3 | /// Shell command representation.
:
61 | /// - workingDirectory: Working directory for the executable.
62 | /// - qualityOfService: Quality of service level applied to the process.
63 | public init(
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: enum 'QualityOfService' is imported by this file as 'internal' from 'Foundation'
64 | _ command: String...,
65 | environment: ShellEnvironment = .current,
Foundation.QualityOfService:2:13: note: type declared here
1 | @available(macOS 10.10, *)
2 | public enum QualityOfService : Int, @unchecked Sendable {
| `- note: type declared here
3 | public init?(rawValue: Int)
4 | public var rawValue: Int { get }
[6/7] Emitting module SwiftShell
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/Bash.swift:16:22: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | extension ShellCommand {
:
14 | /// - qualityOfService: Quality of service level applied to the process.
15 | /// - Returns: Shell command representation.
16 | public static func bash(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
17 | _ script: String,
18 | environment: ShellEnvironment = .current,
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellCommand.swift:17:10: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Shell command representation.
:
15 | /// - workingDirectory: Working directory for the executable.
16 | /// - qualityOfService: Quality of service level applied to the process.
17 | public init(
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
18 | executableURL: URL,
19 | arguments: [String] = [],
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellCommand.swift:32:14: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Shell command representation.
:
30 |
31 | /// URL represening path to the executable.
32 | public var executableURL: URL
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
33 |
34 | /// The command arguments used to launch the executable.
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellCommand.swift:43:14: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Shell command representation.
:
41 | ///
42 | /// If `nil` (default), the current working directory will be used.
43 | public var workingDirectory: URL?
| |- error: property cannot be declared public because its type uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
44 |
45 | /// Quality of service level applied to the process.
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellCommand.swift:48:14: error: property cannot be declared public because its type uses an internal type
1 | import Foundation
| `- note: enum 'QualityOfService' imported as 'internal' from 'Foundation' here
2 |
3 | /// Shell command representation.
:
46 | ///
47 | /// If `nil`, a default QoS will be used.
48 | public var qualityOfService: QualityOfService?
| |- error: property cannot be declared public because its type uses an internal type
| `- note: enum 'QualityOfService' is imported by this file as 'internal' from 'Foundation'
49 | }
50 |
Foundation.QualityOfService:2:13: note: type declared here
1 | @available(macOS 10.10, *)
2 | public enum QualityOfService : Int, @unchecked Sendable {
| `- note: type declared here
3 | public init?(rawValue: Int)
4 | public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellCommand.swift:63:10: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: enum 'QualityOfService' imported as 'internal' from 'Foundation' here
2 |
3 | /// Shell command representation.
:
61 | /// - workingDirectory: Working directory for the executable.
62 | /// - qualityOfService: Quality of service level applied to the process.
63 | public init(
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: enum 'QualityOfService' is imported by this file as 'internal' from 'Foundation'
64 | _ command: String...,
65 | environment: ShellEnvironment = .current,
Foundation.QualityOfService:2:13: note: type declared here
1 | @available(macOS 10.10, *)
2 | public enum QualityOfService : Int, @unchecked Sendable {
| `- note: type declared here
3 | public init?(rawValue: Int)
4 | public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:19:10: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
17 | /// - currentDirectoryURL: Working directory for the executable.
18 | /// - qualityOfService: Quality of service class applied to the process.
19 | public init(
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
20 | executableURL: URL,
21 | arguments: [String]? = nil,
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:97:61: error: var 'EXIT_SUCCESS' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: var 'EXIT_SUCCESS' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
95 | @discardableResult
96 | public func waitUntilExit(
97 | validate isSuccess: @Sendable (Int32) -> Bool = { $0 == EXIT_SUCCESS }
| `- error: var 'EXIT_SUCCESS' is internal and cannot be referenced from a default argument value
98 | ) throws -> Int32 {
99 | process.waitUntilExit()
_stdlib.EXIT_SUCCESS:1:12: note: var 'EXIT_SUCCESS' is not '@usableFromInline' or public
1 | public var EXIT_SUCCESS: Int32 { get }
| `- note: var 'EXIT_SUCCESS' is not '@usableFromInline' or public
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:97:61: error: getter for var 'EXIT_SUCCESS' is internal and cannot be referenced from a default argument value
1 | import Foundation
| `- note: getter for var 'EXIT_SUCCESS' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
95 | @discardableResult
96 | public func waitUntilExit(
97 | validate isSuccess: @Sendable (Int32) -> Bool = { $0 == EXIT_SUCCESS }
| `- error: getter for var 'EXIT_SUCCESS' is internal and cannot be referenced from a default argument value
98 | ) throws -> Int32 {
99 | process.waitUntilExit()
_stdlib._:1:1: note: getter for var 'EXIT_SUCCESS' is not '@usableFromInline' or public
1 | get
| `- note: getter for var 'EXIT_SUCCESS' is not '@usableFromInline' or public
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:127:15: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
125 | ///
126 | /// - Parameter data: Input data.
127 | public func send(input data: Data) throws {
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
128 | guard isRunning else { throw InputError.processIsNotRunning }
129 | try inputPipe.fileHandleForWriting.write(contentsOf: data)
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:142:15: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
140 | ///
141 | /// - Returns: Standard output data.
142 | public func output() throws -> Data? {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
143 | try outputPipe.fileHandleForReading.readToEnd()
144 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:151:27: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
149 | ///
150 | /// - Returns: Async stream of standard output data.
151 | public nonisolated func outputStream() -> AsyncStream<Data> {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
152 | AsyncStream {
153 | let data = self.outputPipe.fileHandleForReading.availableData
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:161:15: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
159 | ///
160 | /// - Returns: Standard error data.
161 | public func error() throws -> Data? {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
162 | try errorPipe.fileHandleForReading.readToEnd()
163 | }
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:170:27: error: method cannot be declared public because its result uses an internal type
1 | import Foundation
| `- note: struct 'Data' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
168 | ///
169 | /// - Returns: Async stream of standard error data.
170 | public nonisolated func errorStream() -> AsyncStream<Data> {
| |- error: method cannot be declared public because its result uses an internal type
| `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
171 | AsyncStream {
172 | let data = self.errorPipe.fileHandleForReading.availableData
Foundation.Data:2:23: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: type declared here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/ShellProcess.swift:189:10: error: initializer cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | /// Represents shell process.
:
187 | /// - currentDirectoryURL: Working directory for the executable.
188 | /// - qualityOfService: Quality of service class applied to the process.
189 | public init(
| |- error: initializer cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
190 | _ command: ShellCommand,
191 | currentDirectoryURL: URL? = nil,
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
[7/7] Compiling SwiftShell Bash.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftShell/Bash.swift:16:22: error: method cannot be declared public because its parameter uses an internal type
1 | import Foundation
| `- note: struct 'URL' imported as 'internal' from 'Foundation' here
2 |
3 | extension ShellCommand {
:
14 | /// - qualityOfService: Quality of service level applied to the process.
15 | /// - Returns: Shell command representation.
16 | public static func bash(
| |- error: method cannot be declared public because its parameter uses an internal type
| `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
17 | _ script: String,
18 | environment: ShellEnvironment = .current,
Foundation.URL:2:15: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URL : Equatable, Sendable, Hashable {
| `- note: type declared here
3 | public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
4 | public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
BUILD FAILURE 6.0 macosSpm