我在Xcode中遇到了这个错误,尽管事实上我在info.plist中为NSContactsUsageDescription添加了一个描述字符串。它发生在模拟器和iPad& iPhone。
[access] 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.
我已尝试清除,重建,从设备中删除应用,重新启动Xcode。从info.plist中删除并再次添加。我还检查了info.plist的源代码,看看密钥是否已正确添加。
我一直收到这个错误!