Xcode 15 beta 5 + iOS 17 beta 4: AppShortcuts do not show up in Shortcuts app

In Xcode 15 beta 5 + iOS 17 beta 4, the AppShortcuts (or maybe Shortcuts app) is broken. The AppShortcuts defined in AppShortcutsProvider are not shown up in the Shortcuts app any more.

Reproduce Code

import SwiftUI
import AppIntents

@main
struct LearnShortcutsApp: App {
    var body: some Scene {
        WindowGroup {
            Text("Hello, world!")
        }
    }
}

struct MyAction: AppIntent {
    static let title: LocalizedStringResource = "My Action"
    
    func perform() async throws -> some IntentResult {
        return .result()
    }
}

struct MyAppShortcts: AppShortcutsProvider {
    static var appShortcuts: [AppShortcut] {
        AppShortcut(intent: MyAction(),
                    phrases: [
                        "Perform action with \(.applicationName)"
                    ],
                    shortTitle: "Perform My Action",
                    systemImageName: "heart")
    }
}

FB12755849

Xcode 15 beta 5 + iOS 17 beta 4: AppShortcuts do not show up in Shortcuts app
 
 
Q