Ios14 iOS 14 getAllVoiceShortcuts返回LaunchServices错误
在一个完全空白的Xcode项目中,我只需调用:Ios14 iOS 14 getAllVoiceShortcuts返回LaunchServices错误,ios14,sirishortcuts,Ios14,Sirishortcuts,在一个完全空白的Xcode项目中,我只需调用: class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() INVoiceShortcutCenter.shared.getAllVoiceShortcuts { (shortcuts, error) in } } } 此日志失败: [default] Lau
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
INVoiceShortcutCenter.shared.getAllVoiceShortcuts { (shortcuts, error) in
}
}
}
此日志失败:
[default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=271, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
重试20次,直到放弃
Siri功能已添加到应用程序中。仅在iOS 14 GM和Xcode 12 GM中的物理设备上发生。
任何帮助都将不胜感激。我有同样的问题(正如您所说,仅在物理设备中),但我有10次重试,而不是20次。
在iOS 14.0之前,我没有错误,所以可能是SiriKit中的一些错误。
我注意到这种情况只发生一次——下次调用时,没有错误。
所以,现在,我在AppDelegate中添加了这个调用-当应用程序启动时,因为错误会冻结UI一秒钟。我也有同样的问题(正如您所说,仅在物理设备中),但我有10次重试,而不是20次。
在iOS 14.0之前,我没有错误,所以可能是SiriKit中的一些错误。
我注意到这种情况只发生一次——下次调用时,没有错误。
所以,现在,我在AppDelegate中添加了这个调用-当应用程序启动时,因为错误会冻结UI一秒钟。当我加载
inuiadvoiceshortcutbutton
时,我也会在10次重试中得到这个错误,所以看起来SiriKit总体上是个问题,但是我还没有找到一个好的解决方法。当我加载一个inuiddvoiceshortcutbutton
时,我也会重试10次,因此SiriKit总体上似乎有问题,但我还没有找到一个好的解决方法。