解决 IOS上架 Missing Purpose String in Info

6 min read

报错内容

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 NSContactsUsageDescription 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).

其实只要在ios/Runner/Info.plist<string><string>里面填上内容就可以解决掉这个苹果机器检测报错:Missing Purpose String in Info.plist问题了