gpt4 book ai didi

ios - iOS 10.0 运行时崩溃中的 NSCameraUsageDescription?

转载 作者:IT王子 更新时间:2023-10-29 07:26:57 27 4
gpt4 key购买 nike

使用 iOS 10.0 最后一个测试版。我曾尝试在我的应用程序中使用相机扫描条形码,但由于此运行时错误而崩溃。

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

把这个key放到plist里,还是死机了?

最佳答案

在 iOS 10 之后,您必须在 Info.plist 中定义并提供您的应用程序访问的所有系统隐私敏感数据的使用说明,如下所示:

日历

Key    :  Privacy - Calendars Usage Description    
Value : $(PRODUCT_NAME) calendar events

提醒:

Key    :   Privacy - Reminders Usage Description    
Value : $(PRODUCT_NAME) reminder use

联系方式:

Key    :   Privacy - Contacts Usage Description     
Value : $(PRODUCT_NAME) contact use

照片:

Key    :  Privacy - Photo Library Usage Description    
Value : $(PRODUCT_NAME) photo use

蓝牙共享:

Key    :  Privacy - Bluetooth Peripheral Usage Description     
Value : $(PRODUCT_NAME) Bluetooth Peripheral use

麦克风(也用于视频录制):

Key    :  Privacy - Microphone Usage Description    
Value : $(PRODUCT_NAME) microphone use

相机(拍照或录像):

Key    :  Privacy - Camera Usage Description   
Value : $(PRODUCT_NAME) camera use

地点:

Key    :  Privacy - Location Always Usage Description   
Value : $(PRODUCT_NAME) location use

Key : Privacy - Location When In Use Usage Description
Value : $(PRODUCT_NAME) location use

希思:

Key    :  Privacy - Health Share Usage Description   
Value : $(PRODUCT_NAME) heath share use

Key : Privacy - Health Update Usage Description
Value : $(PRODUCT_NAME) heath update use

家庭套件:

Key    :  Privacy - HomeKit Usage Description   
Value : $(PRODUCT_NAME) home kit use

媒体库:

Key    :  Privacy - Media Library Usage Description   
Value : $(PRODUCT_NAME) media library use

运动:

Key    :  Privacy - Motion Usage Description   
Value : $(PRODUCT_NAME) motion use

语音识别:

Key    :  Privacy - Speech Recognition Usage Description   
Value : $(PRODUCT_NAME) speech use

语音助手:

Key    :  Privacy - Siri Usage Description  
Value : $(PRODUCT_NAME) siri use

电视提供商:

Key    :  Privacy - TV Provider Usage Description   
Value : $(PRODUCT_NAME) tvProvider use

您可以在this中获取详细信息链接。

关于ios - iOS 10.0 运行时崩溃中的 NSCameraUsageDescription?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39465687/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com