本文主要是介绍Missing Purpose String in Info.plist File:构建版本按钮不显示.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
最近做了一个新项目,打包发布的时候,等了好长时间,构建版本的按钮就是不出现,后来登录开发者账号的邮箱,才看见苹果发过来的邮件:
Dear Developer,
We identified one or more issues with a recent delivery for your app, "蓝汇智能AI". Please correct the following issues, then upload again.
Missing Purpose String in Info.plist File - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSPhotoLibraryUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string.If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).
Missing Purpose String in Info.plist File - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSCameraUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string.If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).
Best regards,
The App Store Team
具体内容我就不翻译了,有想看翻译的可以参考:https://www.jianshu.com/p/1611c48a3d71
其实问题就是你光添加了NSPhotoLibraryUsageDescription 和 NSCameraUsageDescription 这两个秘钥是不行的,注意邮件内容中我标红的地方,还要说出你为什么需要使用相册和相机权限,其实也就是加一点描述,描述尽量清晰一点,不然会被打回。
有问题的:
(构建版本按钮不出现的)
(提交后被驳回的,驳回原因,就是使用相机权限的描述不清晰)
修改过后:
这篇关于Missing Purpose String in Info.plist File:构建版本按钮不显示.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!