Search code examples
mkmapviewmkmapviewdelegate

While implementing mapView i am getting error


Undefined symbols for architecture i386: "_OBJC_CLASS_$_MKMapView"

  Undefined symbols for architecture i386:          "_OBJC_CLASS_$_MKMapView"

Solution

  • You have included the header, so you can compile your code, but you are not linking the binary library, so you can't complete the build process.

                               Follow these steps 
    

    -1.In your target settings, go to Build Phases
    - 2.And in the "Link with binary libraries" section, add MapKit.framework .