I am receiving the following error: Use of undeclared type 'MKMapView'
.
I know this question was already asked but the answers are not the ones I'm looking for. I have already imported MapKit and UIKit.
import UIKit
import MapKit
import CoreLocation
class SecondViewController: UIViewController, CLLocationManagerDelegate {
@IBOutlet var mapView: MKMapView! // Error occurs.
I should note that the code runs just fine with no errors when I test it in the simulator but when I try to build it on my iPhone 6 (11.1) it gives me this error. I am using xCode 9.1 beta 1.