【问题标题】:SiriKit crashes: "Use of the class from an app requires the entitlement com.apple.developer.siri."SiriKit 崩溃:“使用应用程序中的类需要权利 com.apple.developer.siri。”
【发布时间】:2016-12-19 07:37:16
【问题描述】:

我们收到的崩溃报告说“在应用程序中使用 INPreferences 类需要权利 com.apple.developer.siri。您是否在 Xcode 项目中启用了 Siri 功能?” .但是我们绝对在 Xcode 中启用了 Siri 功能,并且 APP ID确实支持 Siri 功能,否则我们的应用程序会一直崩溃。那么,为什么只有一些设备崩溃了?这让我们很困扰。

有人知道原因或遇到过同样的问题吗?如果您能提供一些帮助,我们将不胜感激。

这是崩溃日志:

0 CoreFoundation 0x000000018b6fd1b8 ___exceptionPreprocess + 124  
1 libobjc.A.dylib 0x000000018a13455c objc_exception_throw + 44  
2 Intents 0x00000001a4cd55ac -[INPreferences _siriAuthorizationStatus]  
3 libdispatch.dylib 0x000000018a5861bc __dispatch_client_callout + 16  
4 libdispatch.dylib 0x000000018a586fb0 dispatch_once_f + 56  
5 Intents 0x00000001a4cd51d8 -[INPreferences assertThisProcessHasSiriEntitlement] + 112  
6 Intents 0x00000001a4cd57f8 -[INPreferences requestSiriAuthorization:] + 96  
7 Intents 0x00000001a4cd5950 +[INPreferences requestSiriAuthorization:] + 80  
8 AppName 0x0000000100589cf4 -[AppDelegate _requestAuthorizations] (CAppDelegate.m:802)  
9 AppName 0x00000001001b99dc -[SplashView p_didTransitionImageViewAnimations] (SplashView.m:234)  
10 AppName 0x0000000100a3adb0 -[SplashView p_disappearImageView] (SplashView.m:395)  
11 Foundation 0x000000018c1fa46c __NSFireDelayedPerform + 416  
12 CoreFoundation 0x000000018b6ab1d8 ___CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28  
13 CoreFoundation 0x000000018b6aaeec ___CFRunLoopDoTimer + 872   
14 CoreFoundation 0x000000018b6aa7a8 ___CFRunLoopDoTimers + 244  
15 CoreFoundation 0x000000018b6a83a4 ___CFRunLoopRun + 1572  
16 CoreFoundation 0x000000018b5d62b8 CFRunLoopRunSpecific + 436  
17 GraphicsServices 0x000000018d08a198 GSEventRunModal + 172  
18 UIKit 0x00000001916167fc -[UIApplication _run] + 684  
19 UIKit 0x0000000191611534 UIApplicationMain + 204  
20 AppName 0x00000001002a6084 main (main.m:248)  
21 libdyld.dylib 0x000000018a5b95b8 _dyld_process_info_notify_release + 36  

Use of the class <INPreferences: 0x174238980> from an app requires the entitlement com.apple.developer.siri. Did you enable the Siri capability in your Xcode project?

【问题讨论】:

  • 我也遇到了同样的问题。这有什么具体原因吗。应用程序在直接从 XCODE 运行时运行良好。当应用程序在使用存档构建时调用 siri 的权限请求时,它会崩溃。并且没有其他日志出现。一旦我删除了 siri 权限请求,它就可以正常工作。并且请求时其他权限没有问题。

标签: sirikit


【解决方案1】:

您似乎需要与扩展程序共享主应用程序的数据,为您的应用程序打开 Siri 功能和应用程序分组。另外,您必须在developer.apple.com上为您的应用添加 Siri 功能

【讨论】:

  • 我很困惑,如果这是这个原因,应用程序会一直崩溃。无论如何,我会尝试这个解决方案,谢谢!
  • @pikachu 也尝试为您的应用启用 Siri 功能。
【解决方案2】:

转到您的权利文件并确保您启用了 siri

【讨论】:

  • 这个对我有用。我在证书和功能中启用了 Siri,但在权利中添加 Siri 后仍然收到此错误我没有收到任何错误
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-04-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-07-05
  • 1970-01-01
相关资源
最近更新 更多