I am able to fix this issue by setting Command Line Tool to Xcode 14.0 (Xcode->Preference->Locations->Command Line Tools.)
Post
Replies
Boosts
Views
Activity
Hi I also had the same issue. You can also try by setting Command Line Tool to Xcode 14.0 (Xcode->Preference->Locations->Command Line Tools.). Also implement AppShortcutsProvider protocol. It worked for me.
struct StartMeditationIntent: AppIntent {
static let title: LocalizedStringResource = "Start Meditation Session"
func perform() async throws -> some IntentPerformResult {
let answer: LocalizedStringResource = "Session Started"
let dialogIntent = IntentDialog(answer)
return .finished(dialog: dialogIntent)
}
}
struct LibraryAutoShortCuts: AppShortcutsProvider {
static var appShortcuts: [AppShortcut] {
AppShortcut(intent: StartMeditationIntent(), phrases: ["Start Meditation"])
}
}