美文网首页
iOS-AppStore上架解决禁用UIWebView问题

iOS-AppStore上架解决禁用UIWebView问题

作者: 晴天ccc | 来源:发表于2022-03-17 18:55 被阅读0次

公司一个老项目,准备提交版本更新。结果一直卡在UIWebView上面,正常情况下就是移除所有的UIWebView,但还是发了邮件提示没有移除干净。邮件如下:

Dear Developer,

We identified one or more issues with a recent delivery for your app, "****" 1.0.2 (1.0.2.2). 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).

Best regards,

The App Store Team 

  • 按照要求移除代码中的UIWebView
  • 查看第三方库是否包含UIWebView

打开终端,cd 到项目根目录下输入下方指令 (空格和点是要有的)

grep -r UIWebView .

打印结果:

mac@Macmini EEP % grep -r UIWebView .
Binary file ./Pods/UMCShare/UMShare/UMShare.framework/UMShare matches
Binary file ./Pods/UMCShare/UMShare/SocialLibraries/WeChat/libSocialWeChat.a matches
Binary file ./EEP.xcworkspace/xcuserdata/mac.xcuserdatad/UserInterfaceState.xcuserstate matches

最后发现是友盟的第三方库引用了,更新处理就解决了。
然后再次输入命令检查一遍为空即可。

相关文章

网友评论

      本文标题:iOS-AppStore上架解决禁用UIWebView问题

      本文链接:https://www.haomeiwen.com/subject/myxbdrtx.html