Hi, I am new to swift and have repeatedly gotten this error. Many of the resources online haven't proved useful. I have chosen this example . I am trying to show the user the location of the Eiffel Tower. When I try to run the project ad launch the app, I get an error. I am using Xcode 13 Beta with iOS 15 beta. If I could get some help answering this question that would be greatly appreciated.
谢谢 Thanks
import UIKit
import MapKit
class ViewController: UIViewController {
@IBOutlet weak var mapView: MKMapView!
override func viewDidLoad() {
super.viewDidLoad()
let annotation = MKPointAnnotation()
annotation.coordinate = CLLocationCoordinate2D(latitude: 48.858370, longitude: 2.294481)
mapView.addAnnotation(annotation as MKAnnotation)
// func Do any additional setup after loading the view.
}
}