且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

即使我没有使用任何 UIWebView,Apple 也不会接受我的应用程序

更新时间:2023-11-14 18:30:04

WKWebViewUIWebView 的替代品.如果您的代码中没有 UIWebView 用法,那么通过执行以下终端命令,您可以轻松了解哪个库仍在使用 UIWebView 参考(不要错过.(点)).

WKWebView is the replacement for UIWebView. If you don't have UIWebView usage in your code than by executing the below terminal command you can easily get to know that which library is still using UIWebView reference (don't miss the . (dot)).

grep -r UIWebView /Path/To/Project/*

框架匹配的输出

./<ANY>.framework/Headers/ANY.h:#define ANYUseUIWebView ANY_NAME_PASTE(ANY_PREFIX_NAME, ANYUseUIWebView)

库匹配的输出

Binary file ./<FRAMEWORK-NAME>.framework/<LIB-FILE>.a matches

更新这些库

还可以查看这篇文章 https://medium.com/@zivchen_42755/for-me-that-wasnt-enough-it-didn-t-found-all-of-them-thats-weird-something-to-do-with-pod-i-a068d55b7fab