The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Poes, reference master (530ab4), with Swift 6.0 for Linux on 27 Nov 2024 20:30:55 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.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AvdLee/Poes.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/AvdLee/Poes
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 530ab44 Update stale.yml
Submodule path 'Submodules/WeTransfer-iOS-CI': checked out 'c2122f81f98515f3e292dff1a5e03c6899870646'
Submodule 'Submodules/WeTransfer-iOS-CI' (https://github.com/WeTransfer/WeTransfer-iOS-CI.git) registered for path 'Submodules/WeTransfer-iOS-CI'
Cloning into '/host/spi-builder-workspace/Submodules/WeTransfer-iOS-CI'...
Cloned https://github.com/AvdLee/Poes.git
Revision (git rev-parse @):
530ab4428083f0ad8935d165684a1b5a70dc2399
SUCCESS checkout https://github.com/AvdLee/Poes.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/AvdLee/Poes.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-argument-parser
[1/12395] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.77s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.48s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
Building for debugging...
[0/11] Write sources
[4/11] Write swift-version-24593BA9C3E375BF.txt
[6/13] Compiling ArgumentParserToolInfo ToolInfo.swift
[7/13] Emitting module ArgumentParserToolInfo
[8/14] Wrapping AST for ArgumentParserToolInfo for debugging
[10/48] Emitting module ArgumentParser
[11/52] Compiling ArgumentParser CollectionExtensions.swift
[12/52] Compiling ArgumentParser SequenceExtensions.swift
[13/52] Compiling ArgumentParser StringExtensions.swift
[14/52] Compiling ArgumentParser Tree.swift
[15/52] Compiling ArgumentParser BashCompletionsGenerator.swift
[16/52] Compiling ArgumentParser CompletionsGenerator.swift
[17/52] Compiling ArgumentParser FishCompletionsGenerator.swift
[18/52] Compiling ArgumentParser ZshCompletionsGenerator.swift
[19/52] Compiling ArgumentParser Argument.swift
[20/52] Compiling ArgumentParser ArgumentHelp.swift
[21/52] Compiling ArgumentParser CompletionKind.swift
[22/52] Compiling ArgumentParser Errors.swift
[23/52] Compiling ArgumentParser Flag.swift
[24/52] Compiling ArgumentParser NameSpecification.swift
[25/52] Compiling ArgumentParser ArgumentSet.swift
[26/52] Compiling ArgumentParser CommandParser.swift
[27/52] Compiling ArgumentParser InputOrigin.swift
[28/52] Compiling ArgumentParser Name.swift
[29/52] Compiling ArgumentParser Parsed.swift
[30/52] Compiling ArgumentParser ParsedValues.swift
[31/52] Compiling ArgumentParser ParserError.swift
[32/52] Compiling ArgumentParser SplitArguments.swift
[33/52] Compiling ArgumentParser DumpHelpGenerator.swift
[34/52] Compiling ArgumentParser Option.swift
[35/52] Compiling ArgumentParser OptionGroup.swift
[36/52] Compiling ArgumentParser CommandConfiguration.swift
[37/52] Compiling ArgumentParser EnumerableFlag.swift
[38/52] Compiling ArgumentParser ExpressibleByArgument.swift
[39/52] Compiling ArgumentParser ParsableArguments.swift
[40/52] Compiling ArgumentParser ParsableArgumentsValidation.swift
[41/52] Compiling ArgumentParser ParsableCommand.swift
[42/52] Compiling ArgumentParser ArgumentDecoder.swift
[43/52] Compiling ArgumentParser ArgumentDefinition.swift
[44/52] Compiling ArgumentParser HelpCommand.swift
[45/52] Compiling ArgumentParser HelpGenerator.swift
[46/52] Compiling ArgumentParser MessageInfo.swift
[47/52] Compiling ArgumentParser UsageGenerator.swift
[48/53] Wrapping AST for ArgumentParser for debugging
[50/59] Compiling PoesCore Send.swift
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:19:43: error: extra argument 'default' in call
17 |     private var bundleIdentifier: String
18 |
19 |     @Option(name: .shortAndLong, default: "Default Title", help: "The title of the Push notification")
   |                                           `- error: extra argument 'default' in call
20 |     private var title: String
21 |
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:22:43: error: extra argument 'default' in call
20 |     private var title: String
21 |
22 |     @Option(name: .shortAndLong, default: "Default Body", help: "The body of the Push notification")
   |                                           `- error: extra argument 'default' in call
23 |     private var body: String
24 |
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:28:6: error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
26 |     private var badge: Int?
27 |
28 |     @Flag(name: .shortAndLong, help: "Adds the mutable-content key to the payload")
   |      `- error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
29 |     private var isMutable: Bool
30 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Flag.swift:298:1: note: where 'Value' = 'Bool'
296 | }
297 |
298 | extension Flag where Value == Int {
    | `- note: where 'Value' = 'Bool'
299 |   /// Creates an integer property that gets its value from the number of times
300 |   /// a flag appears.
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:31:6: error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
29 |     private var isMutable: Bool
30 |
31 |     @Flag(name: .long, help: "Show extra logging for debugging purposes")
   |      `- error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
32 |     private var verbose: Bool
33 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Flag.swift:298:1: note: where 'Value' = 'Bool'
296 | }
297 |
298 | extension Flag where Value == Int {
    | `- note: where 'Value' = 'Bool'
299 |   /// Creates an integer property that gets its value from the number of times
300 |   /// a flag appears.
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:12:8: error: type 'Send' does not conform to protocol 'Decodable'
10 | import ArgumentParser
11 |
12 | struct Send: ParsableCommand, ShellInjectable {
   |        `- error: type 'Send' does not conform to protocol 'Decodable'
13 |
14 |     public static let configuration = CommandConfiguration(abstract: "Send a push notification to an app installed on the iOS Simulator")
   :
18 |
19 |     @Option(name: .shortAndLong, default: "Default Title", help: "The title of the Push notification")
20 |     private var title: String
   |                 `- note: cannot automatically synthesize 'Decodable' because '<<error type>>' does not conform to 'Decodable'
21 |
22 |     @Option(name: .shortAndLong, default: "Default Body", help: "The body of the Push notification")
23 |     private var body: String
   |                 `- note: cannot automatically synthesize 'Decodable' because '<<error type>>' does not conform to 'Decodable'
24 |
25 |     @Option(name: .shortAndLong, help: "The number to display in a badge on your app’s icon")
   :
27 |
28 |     @Flag(name: .shortAndLong, help: "Adds the mutable-content key to the payload")
29 |     private var isMutable: Bool
   |                 `- note: cannot automatically synthesize 'Decodable' because '<<error type>>' does not conform to 'Decodable'
30 |
31 |     @Flag(name: .long, help: "Show extra logging for debugging purposes")
32 |     private var verbose: Bool
   |                 `- note: cannot automatically synthesize 'Decodable' because '<<error type>>' does not conform to 'Decodable'
33 |
34 |     func run() throws {
Swift.Decodable:2:5: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | public protocol Decodable {
2 |     init(from decoder: any Decoder) throws
  |     `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 | }
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:14:23: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
12 | struct Send: ParsableCommand, ShellInjectable {
13 |
14 |     public static let configuration = CommandConfiguration(abstract: "Send a push notification to an app installed on the iOS Simulator")
   |                       `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |     @Argument(help: "The bundle identifier of the app to push to")
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 8 |
 9 | import Foundation
10 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
11 |
12 | struct Send: ParsableCommand, ShellInjectable {
13 |
14 |     public static let configuration = CommandConfiguration(abstract: "Send a push notification to an app installed on the iOS Simulator")
   |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     @Argument(help: "The bundle identifier of the app to push to")
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:46:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
44 |         let tempUrl = NSTemporaryDirectory()
45 |         let payloadUrl = Foundation.URL(fileURLWithPath: tempUrl, isDirectory: true).appendingPathComponent("payload.json")
46 |         FileManager.default.createFile(atPath: payloadUrl.path, contents: jsonData, attributes: nil)
   |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
47 |
48 |         Log.message("Sending push notification...")
/host/spi-builder-workspace/Sources/PoesCore/Helpers/Log.swift:12:16: warning: static property 'isVerbose' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | enum Log {
12 |     static var isVerbose: Bool = false
   |                |- warning: static property 'isVerbose' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'isVerbose' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'isVerbose' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 |     static func debug(_ message: Any) {
[51/59] Compiling PoesCore Poes.swift
/host/spi-builder-workspace/Sources/PoesCore/Poes.swift:13:23: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | public struct Poes: ParsableCommand {
13 |     public static let configuration = CommandConfiguration(
   |                       `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
14 |         abstract: "A Swift command-line tool to easily test push notifications to the iOS simulator",
15 |         subcommands: [Send.self])
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/host/spi-builder-workspace/Sources/PoesCore/Poes.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 8 |
 9 | import Foundation
10 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
11 |
12 | public struct Poes: ParsableCommand {
13 |     public static let configuration = CommandConfiguration(
   |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |         abstract: "A Swift command-line tool to easily test push notifications to the iOS simulator",
15 |         subcommands: [Send.self])
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:19:43: error: extra argument 'default' in call
17 |     private var bundleIdentifier: String
18 |
19 |     @Option(name: .shortAndLong, default: "Default Title", help: "The title of the Push notification")
   |                                           `- error: extra argument 'default' in call
20 |     private var title: String
21 |
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:22:43: error: extra argument 'default' in call
20 |     private var title: String
21 |
22 |     @Option(name: .shortAndLong, default: "Default Body", help: "The body of the Push notification")
   |                                           `- error: extra argument 'default' in call
23 |     private var body: String
24 |
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:28:6: error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
26 |     private var badge: Int?
27 |
28 |     @Flag(name: .shortAndLong, help: "Adds the mutable-content key to the payload")
   |      `- error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
29 |     private var isMutable: Bool
30 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Flag.swift:298:1: note: where 'Value' = 'Bool'
296 | }
297 |
298 | extension Flag where Value == Int {
    | `- note: where 'Value' = 'Bool'
299 |   /// Creates an integer property that gets its value from the number of times
300 |   /// a flag appears.
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:31:6: error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
29 |     private var isMutable: Bool
30 |
31 |     @Flag(name: .long, help: "Show extra logging for debugging purposes")
   |      `- error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
32 |     private var verbose: Bool
33 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Flag.swift:298:1: note: where 'Value' = 'Bool'
296 | }
297 |
298 | extension Flag where Value == Int {
    | `- note: where 'Value' = 'Bool'
299 |   /// Creates an integer property that gets its value from the number of times
300 |   /// a flag appears.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[52/59] Compiling PoesCore Shell.swift
/host/spi-builder-workspace/Sources/PoesCore/Helpers/Shell.swift:58:16: warning: static property 'shell' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | enum ShellInjector {
58 |     static var shell: ShellExecuting.Type = Shell.self
   |                |- warning: static property 'shell' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shell' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shell' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | }
60 |
/host/spi-builder-workspace/Sources/PoesCore/Helpers/Shell.swift:24:9: warning: 'launchPath' is deprecated: renamed to 'executableURL'
22 | extension Process {
23 |     func shell(_ command: ShellCommand) -> String {
24 |         launchPath = "/bin/bash"
   |         |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
   |         `- note: use 'executableURL' instead
25 |         arguments = ["-c", command.rawValue]
26 |
/host/spi-builder-workspace/Sources/PoesCore/Helpers/Shell.swift:29:9: warning: 'launch()' is deprecated: renamed to 'run'
27 |         let outputPipe = Pipe()
28 |         standardOutput = outputPipe
29 |         launch()
   |         |- warning: 'launch()' is deprecated: renamed to 'run'
   |         `- note: use 'run' instead
30 |
31 |         let data = outputPipe.fileHandleForReading.readDataToEndOfFile()
[53/59] Compiling PoesCore Log.swift
/host/spi-builder-workspace/Sources/PoesCore/Helpers/Log.swift:12:16: warning: static property 'isVerbose' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | enum Log {
12 |     static var isVerbose: Bool = false
   |                |- warning: static property 'isVerbose' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'isVerbose' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'isVerbose' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 |     static func debug(_ message: Any) {
[54/59] Compiling PoesCore Payload.swift
[55/59] Emitting module PoesCore
/host/spi-builder-workspace/Sources/PoesCore/Helpers/Log.swift:12:16: warning: static property 'isVerbose' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | enum Log {
12 |     static var isVerbose: Bool = false
   |                |- warning: static property 'isVerbose' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'isVerbose' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'isVerbose' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 |     static func debug(_ message: Any) {
/host/spi-builder-workspace/Sources/PoesCore/Helpers/Shell.swift:58:16: warning: static property 'shell' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | enum ShellInjector {
58 |     static var shell: ShellExecuting.Type = Shell.self
   |                |- warning: static property 'shell' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shell' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shell' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | }
60 |
/host/spi-builder-workspace/Sources/PoesCore/Poes.swift:13:23: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | public struct Poes: ParsableCommand {
13 |     public static let configuration = CommandConfiguration(
   |                       `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
14 |         abstract: "A Swift command-line tool to easily test push notifications to the iOS simulator",
15 |         subcommands: [Send.self])
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/host/spi-builder-workspace/Sources/PoesCore/Poes.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 8 |
 9 | import Foundation
10 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
11 |
12 | public struct Poes: ParsableCommand {
13 |     public static let configuration = CommandConfiguration(
   |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |         abstract: "A Swift command-line tool to easily test push notifications to the iOS simulator",
15 |         subcommands: [Send.self])
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:19:43: error: extra argument 'default' in call
17 |     private var bundleIdentifier: String
18 |
19 |     @Option(name: .shortAndLong, default: "Default Title", help: "The title of the Push notification")
   |                                           `- error: extra argument 'default' in call
20 |     private var title: String
21 |
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:22:43: error: extra argument 'default' in call
20 |     private var title: String
21 |
22 |     @Option(name: .shortAndLong, default: "Default Body", help: "The body of the Push notification")
   |                                           `- error: extra argument 'default' in call
23 |     private var body: String
24 |
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:28:6: error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
26 |     private var badge: Int?
27 |
28 |     @Flag(name: .shortAndLong, help: "Adds the mutable-content key to the payload")
   |      `- error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
29 |     private var isMutable: Bool
30 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Flag.swift:298:1: note: where 'Value' = 'Bool'
296 | }
297 |
298 | extension Flag where Value == Int {
    | `- note: where 'Value' = 'Bool'
299 |   /// Creates an integer property that gets its value from the number of times
300 |   /// a flag appears.
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:31:6: error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
29 |     private var isMutable: Bool
30 |
31 |     @Flag(name: .long, help: "Show extra logging for debugging purposes")
   |      `- error: referencing initializer 'init(name:help:)' on 'Flag' requires the types 'Bool' and 'Int' be equivalent
32 |     private var verbose: Bool
33 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Flag.swift:298:1: note: where 'Value' = 'Bool'
296 | }
297 |
298 | extension Flag where Value == Int {
    | `- note: where 'Value' = 'Bool'
299 |   /// Creates an integer property that gets its value from the number of times
300 |   /// a flag appears.
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:12:8: error: type 'Send' does not conform to protocol 'Decodable'
10 | import ArgumentParser
11 |
12 | struct Send: ParsableCommand, ShellInjectable {
   |        `- error: type 'Send' does not conform to protocol 'Decodable'
13 |
14 |     public static let configuration = CommandConfiguration(abstract: "Send a push notification to an app installed on the iOS Simulator")
   :
18 |
19 |     @Option(name: .shortAndLong, default: "Default Title", help: "The title of the Push notification")
20 |     private var title: String
   |                 `- note: cannot automatically synthesize 'Decodable' because '<<error type>>' does not conform to 'Decodable'
21 |
22 |     @Option(name: .shortAndLong, default: "Default Body", help: "The body of the Push notification")
23 |     private var body: String
   |                 `- note: cannot automatically synthesize 'Decodable' because '<<error type>>' does not conform to 'Decodable'
24 |
25 |     @Option(name: .shortAndLong, help: "The number to display in a badge on your app’s icon")
   :
27 |
28 |     @Flag(name: .shortAndLong, help: "Adds the mutable-content key to the payload")
29 |     private var isMutable: Bool
   |                 `- note: cannot automatically synthesize 'Decodable' because '<<error type>>' does not conform to 'Decodable'
30 |
31 |     @Flag(name: .long, help: "Show extra logging for debugging purposes")
32 |     private var verbose: Bool
   |                 `- note: cannot automatically synthesize 'Decodable' because '<<error type>>' does not conform to 'Decodable'
33 |
34 |     func run() throws {
Swift.Decodable:2:5: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | public protocol Decodable {
2 |     init(from decoder: any Decoder) throws
  |     `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 | }
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:14:23: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
12 | struct Send: ParsableCommand, ShellInjectable {
13 |
14 |     public static let configuration = CommandConfiguration(abstract: "Send a push notification to an app installed on the iOS Simulator")
   |                       `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |     @Argument(help: "The bundle identifier of the app to push to")
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/host/spi-builder-workspace/Sources/PoesCore/Send.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 8 |
 9 | import Foundation
10 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
11 |
12 | struct Send: ParsableCommand, ShellInjectable {
13 |
14 |     public static let configuration = CommandConfiguration(abstract: "Send a push notification to an app installed on the iOS Simulator")
   |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     @Argument(help: "The bundle identifier of the app to push to")
BUILD FAILURE 6.0 linux