Posts

Post not yet marked as solved
2 Replies
0 Views
I am facing the same issue. Tapping on a shortcut in the shortcuts app under the App Shortcuts section, shows below error: Error Domain=LNActionFor- AutoShortcutPhraseFetchError Code=1 "No AutoShortcuts instance registered." UserInfo={NSLocalizedDescription=No AutoShortcuts instance registered.} Here is my code: struct OpenCurrentlyReading: AppIntent {     static var title: LocalizedStringResource = "Open Currently Reading"     func perform() async throws -> some PerformResult {         return .finished     }     static var openAppWhenRun: Bool = true } public struct LibraryAppShortcuts: AppShortcutsProvider {     public static var appShortcuts: [AppShortcut] {         AppShortcut (             intent: OpenCurrentlyReading(),             phrases: ["Open Currently Reading"],             systemImageName: "books.vertical.fill"         )     } } @main struct FoodTruckAppShortcutsExtension: AppIntentsExtension { } However, same code is working fine for In-app Intents.