I had an app that used an UIWebView in iOS 11, and had the following Environmet Variables for debugging networks conections.
Product > Sceheme > Edit Scheme > Environmet Variables > CFNETWORK_DIAGNOSTICS 3
In iOS 12, UIWebView is deprecated so I changed it for an WKWebView.
Now, I can't see any logs in the console about the networks conections.
Is it CFNetwork Diagnostic still available in iOS12?
I will install again XCode 9.4.1 to have available the use of
until I find a different approach.UIWebView
You don’t have to do that. While
UIWebView is deprecated in the iOS 10 SDK, it still works just fine. There’s absolutely no reason you can’t continue to use
UIWebView with Xcode 10 and the OSes it supports.
Having said that, if there’s a specific feature that’s missing from
WKWebView, like the ability to get nice logging, I strongly encourage you to file an
enhancement request describing your requirements. In the long term
UIWebView will be completely supplanted by
WKWebView, and it’s important that we learn about any missing features before that.
Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"