Swift Tutorials: How to fix warning deprecated UIWebView API usage in Xcode for iOS app

Опубликовано: 29 Октябрь 2019
на канале: Swift Tutorials
9,773
102

Received an email from Apple support, deprecated API usage. Your app is using deprecated API UIWebView. Apple will stop accepting such apps that uses UIWebView. In this video, we will learn how find which framework, library or our code files uses UIWebView. There are three steps to check for UIWebView inside our code or project.

1) Search fro UIWebView, if found replace with WKWebVIew
2) If using pods. check for framework using UIWebView (if syntax is not searchable), we need use commands in terminal to find out culprit framework and then wait for its updation by framework owner.
3) If our code contains frameworks not installed using pods. We need to run command in this case to find out which framework is causing this issue.

Commands for searching UIWebView inside pod framework:
for framework in Frameworks/*.framework; do
fname=$(basename $framework .framework)
echo $fname
nm $framework/$fname | grep UIWeb
done

For searching all code:
grep -r "UIWebView" .


Смотрите видео Swift Tutorials: How to fix warning deprecated UIWebView API usage in Xcode for iOS app онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Swift Tutorials 29 Октябрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 9,773 раз и оно понравилось 102 людям.