SiriKit 意图总是在构建后的第一个 运行 超时
SiriKit intent always times out on first run after build
在我第一次构建和 运行 我的意图项目之后,总是 returns 使用 Sorry, you will need to continue in the app
从 Siri 请求一些东西
但是,在我重建之前,它每次都有效。
我在处理程序中放置了断点:
override func handler(for intent: INIntent) -> Any {
return self
}
句柄中:
func handle(requestRide intent: INRequestRideIntent, completion: @escaping (INRequestRideIntentResponse) -> Void) {
...
}
handler
中的断点在 Siri 说 continue in app
几秒后命中。
SiriKit 对等待非常挑剔。您的第一个 运行 将超时,因为将调试器附加到 Siri 的进程需要 Xcode 的时间。
我刚刚学会了忍受它。
在我第一次构建和 运行 我的意图项目之后,总是 returns 使用 Sorry, you will need to continue in the app
但是,在我重建之前,它每次都有效。
我在处理程序中放置了断点:
override func handler(for intent: INIntent) -> Any {
return self
}
句柄中:
func handle(requestRide intent: INRequestRideIntent, completion: @escaping (INRequestRideIntentResponse) -> Void) {
...
}
handler
中的断点在 Siri 说 continue in app
几秒后命中。
SiriKit 对等待非常挑剔。您的第一个 运行 将超时,因为将调试器附加到 Siri 的进程需要 Xcode 的时间。
我刚刚学会了忍受它。