近期运气不佳,接连被App Store Review团队给拒了两次。记录一下其中的问题,以避免后期开发中犯同样的错误。
App Store Connect邮件:
Dear Developer,
We identified one or more issues with a recent delivery for your app, "一龄" 5.4.5 (5.3.1). Your delivery was successful, but you may wish to correct the following issues in your next delivery:
ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSLocationAlwaysUsageDescription 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 are 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).
After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to App Store Connect.
Best regards,
The App Store Team。
说的是项目缺少NSLocationAlwaysUsageDescription和描述信息,添加上即可。
<key>NSLocationAlwaysUsageDescription</key>
<string>需要访问您的位置,以便APP始终获取您的位置信息</string>