iOS10以来,开发时都需要加入各种权限,通讯录,相册,蓝牙,麦克风,位置信息等等,一开始都是根据自己的需要来加入不同的权限,但是近期突然发现有几个权限属于必加的,否则即使传上去也不能够提交,状态一直是wait submit,料想这种情况出现也有一段时间了。还好去看了绑定的邮箱,苹果有提醒邮件,可以帮助开发者检查权限问题:
Dear developer, We have discovered one or more issues with your recent delivery for "XXXX". To process your delivery, the following issues must be corrected: Missing Info.plist key - This app attempts 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. Once these issues have been corrected, you can then redeliver the corrected binary. Regards, The App Store team
这里博主是因为没有加麦克风权限(因为项目中并没有用到这个功能),被拒绝使用这个包的,至于哪些是必加的还不好说,既然麦克风都加了,那常用的几个肯定要加的如下:
Privacy - Camera Usage Description Privacy - Contacts Usage Description Privacy - Microphone Usage Description Privacy - Photo Library Usage Description Privacy - Location Always Usage Description(位置信息的还没试过不传会不会发生这种情况,但目前看来,其余四个应该是必加了。)
如果碰到App的invalid binary问题,不知道什么问题的话就看看邮箱吧,也许就是权限的问题了。后面碰到其他问题会继续更新。