uni-app打包后上架ios被提示NSMicrophoneUsageDescription没有描述
uni-app打包后上架ios被提示NSMicrophoneUsageDescription没有描述
开发环境 | 版本号 | 项目创建方式 |
---|---|---|
Windows | win10 | HBuilderX |
示例代码:
“ios” : { “dSYMs” : false, “pushRegisterMode” : “manual”, “urltypes” : “”, “urlschemewhitelist” : “”, “idfa” : false, “privacyDescription” : { “NSPhotoLibraryUsageDescription” : “以图搜款功能需要读取从相册选择的图片作为识别对象”, “NSPhotoLibraryAddUsageDescription” : “用于用户保存图片到相册”, “NSCameraUsageDescription” : “以图搜款功能需要读取摄像头拍摄的图片作为识别对象” } }
# 操作步骤:
- 上架时被苹果提示
# 预期结果:
- 代码并没有获取麦克风的操作,不应该被提示
# 实际结果:
- 上架时被苹果提示
# bug描述:
Hello,
We noticed one or more issues with a recent delivery for the following app:
0663批发网
App Apple ID6743422214
Version 1.0.8
Build 108
Although delivery was successful, you may want to correct the following issues in your next delivery. Once you've corrected the issues, upload a new binary to App Store Connect.
ITMS-90738: Invalid purpose string value - The “” value for the NSMicrophoneUsageDescription key isn’t allowed in “HBuilder.app”. Your app’s code references one or more APIs that access sensitive user data, or the app has one or more entitlements that permit such access. The Info.plist file for the “HBuilder.app” bundle should contain a NSMicrophoneUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. For details, visit: https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/requesting_access_to_protected_resources.
Apple Developer Relations
 Contact UsApp Store ConnectOne Apple Park Way, Cupertino, CA 95014Privacy PolicyTerms of Service
更多关于uni-app打包后上架ios被提示NSMicrophoneUsageDescription没有描述的实战教程也可以访问 https://www.itying.com/category-93-b0.html
3 回复
谢谢,用到了uni.chooseVideo
需要在manifest.json的ios隐私描述中补充麦克风权限说明,即使你的应用没有直接使用麦克风。某些插件或底层API可能会触发苹果的检测机制。
修改建议:
"privacyDescription" : {
"NSMicrophoneUsageDescription" : "应用中可能使用到的音视频功能需要访问麦克风",
"NSPhotoLibraryUsageDescription" : "以图搜款功能需要读取从相册选择的图片作为识别对象",
"NSPhotoLibraryAddUsageDescription" : "用于用户保存图片到相册",
"NSCameraUsageDescription" : "以图搜款功能需要读取摄像头拍摄的图片作为识别对象"
}