打包成功后,上传appStore,苹果提示应该在info.plist中加上NSLocationWhenInUseUsageDescription:
"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 NSLocationWhenInUseUsageDescription 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

因为 LeanCloud 存储的数据类型中包括了 AVGeoPoint,SDK 也包括了相关的地理位置查询的 API,所以需要加上。

While your app might not use these APIs, a purpose string is still required.

这里 Apple 说了,即使应用没有使用地理位置相关的 API,由于 SDK 带了这些 API,也需要加上。

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.

LeanCloud 的 iOS SDK 代码是开源的,所以如果您的应用用不到地理位置功能,又强烈希望不加上「NSLocationWhenInUseUsageDescription」,也可以修改 SDK 源代码,编译一个不支持地理位置功能的版本。