CommandGroup, Xcode 16b1, and Swift 6

I suspect this will be a "wait for the next beta" item, but thought I'd throw it out here in case anyone knows of a workaround.

Mac app compiling under Xcode 16 beta 1. Trying to get rid of all warning that would stop the adoption of Swift 6 -- Strict Concurrency Checking is set to Complete.

I'm down to one warning before I can enable swift 6.

SwiftUI.Commands
Main actor-isolated static method '_makeCommands(content:inputs:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode

That's because I've added menu commands to the app. It's very easy to reproduce.

import SwiftUI

@main
struct CommandApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
        .commands {
            HelpCommand()
        }
    }
}

struct HelpCommand: Commands {

    var body: some Commands {
        CommandGroup(replacing: .help) {
            Button("Help me") {
                //
            }
        }
    }
}

The suggested fix is telling me what change I should make ot _makeCommands. At least that is how I'm reading it.

CommandGroup, Xcode 16b1, and Swift 6
 
 
Q