【发布时间】:2018-04-18 09:56:15
【问题描述】:
我的应用程序在 iOS 10 中运行顺畅,但当我将应用程序更新到 iOS 11 时,应用程序开始崩溃。我收到以下错误:
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSContactsUsageDescription key with a string value explaining to the user how the app uses this data.
【问题讨论】:
-
所以将密钥添加到
info.plist并且崩溃应该会消失。 -
你的应用在什么活动上崩溃了?您是否尝试访问图库照片或相机?
-
"隐私 - 联系人使用说明" 将此添加到您的 info.plist 文件中作为 NSContactsUsageDescription。它会解决你的问题。
-
您的问题的答案已经在崩溃描述中...
标签: ios objective-c xcode ios11