在构建后的第一次运行时,SiriKit intent总是超时



在我第一次构建并运行我的intent项目后,从Siri请求一些东西总是返回Sorry, you will need to continue in the app

但是,在我重新构建之前,它每次都工作。

我在处理程序中设置了断点:

override func handler(for intent: INIntent) -> Any {
    return self
}

and in句柄:

func handle(requestRide intent: INRequestRideIntent, completion: @escaping (INRequestRideIntentResponse) -> Void) {
...
}

在Siri输入continue in app后几秒钟,handler中的断点被击中。

SiriKit对等待非常挑剔。你的第一次运行将超时,因为Xcode需要时间将调试器附加到Siri的进程。

我已经学会了接受。

最新更新