I'm new to Swift and I'm getting this Error.
I don't get it because I don't use any type of alert in my code.
Here is my ViewController:
import UIKit
import WebKit
class ViewController: UIViewController{
@IBOutlet weak var webView: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
let url = URL(string: "https://www.google.com/maps")!
webView.load(URLRequest(url: url))
}
}
I only want to use WKWebView in my app and use the location.
I already added NSLocationAlwaysAndWhenInUseUsageDescription
to the info.plist
You can reproduce this error if you using iOS 13, Xcode and this example and any website which uses the location like google maps.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…