蘋果郵件:
Dear Developer,
We identified one or more issues with a recent delivery for your app, "心事傾訴-1對(duì)1心理咨詢與情感傾訴" 1.0.1 (100). Please correct the following issues, then upload again.
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
Though you are not required to fix the following issues, we wanted to make you aware of them:
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 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 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).
Best regards,
The App Store Team
郵件截圖:
1.解決方案
Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability
三步驟如下:
cd 到項(xiàng)目文件
- 輸入命令行
grep -r UIWebView .
- 輸入命令行
apple@AppledeMac-mini Qingsu % grep -r UIWebView . ./Pods/MJRefresh/[README.md](http://readme.md/): * [UIWebView01-The drop-down refresh](#UIWebView01-The_drop-down_refresh) ./Pods/MJRefresh/[README.md](http://readme.md/):* `UIScrollView`、`UITableView`、`UICollectionView`、`UIWebView` ./Pods/MJRefresh/[README.md](http://readme.md/):## <a id="UIWebView01-The_drop-down_refresh"></a>UIWebView01-The drop-down refresh ./Pods/Headers/Public/TTTAttributedLabel/TTTAttributedLabel.h: to emulate the link detection behaviour of UIWebView. ./Pods/Headers/Private/TTTAttributedLabel/TTTAttributedLabel.h: to emulate the link detection behaviour of UIWebView. Binary file ./Pods/UMengUShare/UShareSDK/UMSocialSDK/UMSocialCore.framework/UMSocialCore matches Binary file ./Pods/UMengUShare/UShareSDK/SocialLibraries/WeChat/libSocialWeChat.a matches ./Pods/TTTAttributedLabel/TTTAttributedLabel/TTTAttributedLabel.h: to emulate the link detection behaviour of UIWebView. apple@AppledeMac-mini Qingsu %
- 針對(duì)以上文件,要么升級(jí)SDK,要么去掉第三方的
UIWebView
- 針對(duì)以上文件,要么升級(jí)SDK,要么去掉第三方的
2.解決方案
Info.plist
添加相應(yīng)的key雷袋,權(quán)限配置;