AppIntents/PerformActionExecutorTask.swift:298: Fatal error: perform() returned types not declared in method signature - Did not declare ReturnsValue but provided one

AppIntents/PerformActionExecutorTask.swift:298: Fatal error: perform() returned types not declared in method signature

  • Did not declare ReturnsValue but provided one

    func perform() async throws -> some IntentResult&ReturnsValue<String> { let msg = await JDSiriKitShortCutsManager.handleShortCut(type: type ?? .flashLid) // let dialog = IntentDialog.responseSuccess(msg: msg)

// return .result(value: msg, dialog: dialog, view: JDSirikitShortCutView(msg: msg)) return .result(value: msg) }

func perform() async throws -> some IntentResult & ProvidesDialog & ReturnsValue<String> { let msg: String = await JDSiriKitShortCutsManager.handleShortCut(type: type ?? .flashLid) let dialog = IntentDialog.responseSuccess(msg: msg) return .result(value: msg, dialog: dialog) }

AppIntents/PerformActionExecutorTask.swift:298: Fatal error: perform() returned types not declared in method signature

  • Did not declare ProvidesDialog but provided one
  • Did not declare ReturnsValue but provided one
AppIntents/PerformActionExecutorTask.swift:298: Fatal error: perform() returned types not declared in method signature - Did not declare ReturnsValue but provided one
 
 
Q