简体   繁体   English

iOS 12-“应用程序的Info.plist必须包含NSMicrophoneUsageDescription密钥”

[英]iOS 12 - “The app's Info.plist must contain an NSMicrophoneUsageDescription key”

Today I updated to the beta of iOS 12 to give my company's app a test to see if any features requires some updates. 今天,我更新到了iOS 12测试版,以对公司的应用程序进行测试,以查看是否有任何功能需要进行一些更新。 The only problem I've come across so far was that the app crashes when invoking the camera within it to take a picture. 到目前为止,我遇到的唯一问题是调用相机中的相机拍照时该应用程序崩溃。 When doing so I received the following error: 这样做时,我收到以下错误:

This app has crashed because it attempted to access privacy-sensitive data without a usage description. 该应用已崩溃,因为它尝试访问没有使用说明的隐私敏感数据。 The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data. 该应用程序的Info.plist必须包含一个NSMicrophoneUsageDescription键,该键具有一个字符串值,向用户解释该应用程序如何使用此数据。

I've checked out the apple site for some changes in the permissions around this but haven't found anything relevant. 我已经检查了Apple网站的权限,但没有发现任何相关的更改。 The app currently works on iOS 11 without this. 目前,该应用程序可在没有此功能的iOS 11上运行。 Has anyone ready anything relevant to behavioral changes in this or could it be an iOS 12 beta bug? 有没有人准备任何与此行为改变相关的东西,或者这可能是iOS 12 beta错误? I'm not sure why it now thinks the app needs access to the mic all of a sudden when simply taking a picture. 我不确定为什么现在认为在拍照时应用程序突然需要访问麦克风。

Thanks for your help! 谢谢你的帮助!

Edit: I am aware there are other questions asking about this error text. 编辑:我知道还有其他问题询问此错误文本。 However I am not asking about the error itself, but rather whether or not this is an iOS 12 beta bug or if there is some change in security that I have overlooked. 但是,我并不是在问错误本身,而是在问这是否是iOS 12 beta错误,或者我是否忽略了安全性方面的某些更改。

It bug was fixed in iOS 12 beta 2: 此错误已在iOS 12 Beta 2中修复:

UIKit Resolved Issues UIKit 解决的问题
• Presenting a UIImagePickerController might cause the app to be terminated with a privacy violation if the app does not include the NSMicrophoneUsageDescription key in its Info.plist. •如果应用程序的Info.plist中未包含NSMicrophoneUsageDescription键,则呈现UIImagePickerController可能会导致该应用程序终止并侵犯隐私。 (40490417) (40490417)

https://download.developer.apple.com/Documentation/Beta_Release_Notes_19_June_2018_v2/iOS_12_beta_2_Release_Notes.pdf https://download.developer.apple.com/Documentation/Beta_Release_Notes_19_June_2018_v2/iOS_12_beta_2_Release_Notes.pdf

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 应用程序的 Info.plist 必须包含一个 NSMicrophoneUsageDescription 键和一个字符串值,向用户解释应用程序如何使用此数据 - The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data 应用程序的 Info.plist 必须包含 NSMotionUsageDescription 键 - The app's Info.plist must contain an NSMotionUsageDescription key 应用的 Info.plist 必须包含一个 NSContactsUsageDescription 键 - The app's Info.plist must contain an NSContactsUsageDescription key 要将此应用配置为iOS路由应用,应用的Info.plist必须包含MKDirectionsApplicationSupportedModes键 - To configure this app as an iOS routing app, the app's Info.plist must contain the MKDirectionsApplicationSupportedModes key EKEventStore访问请求在iOS 10上崩溃。消息:应用程序的Info.plist必须包含NSRemindersUsageDescription键 - EKEventStore access request crashes on iOS 10. Message:The app's Info.plist must contain an NSRemindersUsageDescription key 应用程序的 Info.plist 必须包含 NSLocationAlwaysUsageDescription 和 NSLocationWhenInUseUsageDescription。 - The app's Info.plist must contain NSLocationAlwaysUsageDescription & NSLocationWhenInUseUsageDescription. 什么是“应用程序的Info.plist必须包含NSPhotoLibraryAddUsageDescription”的崩溃? - What is the crash of “The app's Info.plist must contain an NSPhotoLibraryAddUsageDescription”? 错误 ITMS-90513:缺少 Info.plist 键。 您的应用程序的 Info.plist 必须包含“TVTopShelfImage.TVTopShelfPrimaryImageWide”键 - ERROR ITMS-90513: Missing Info.plist Key. Your app's Info.plist must contain the 'TVTopShelfImage.TVTopShelfPrimaryImageWide' key 错误ITMS-90642:“缺少Info.plist密钥。 您应用的info.plist必须包含“MSMessagesExtensionStoreIconName”键。“ - ERROR ITMS-90642: “Missing Info.plist Key. Your app's info.plist must contain the 'MSMessagesExtensionStoreIconName' key.” 应用程序的 Info.plist 必须包含一个 NSCameraUsageDescription 键和一个字符串值,向用户解释应用程序如何使用这些数据 - The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM