1

I am creating an interface with an MKMapView. However, I have been getting these error messages and I think I have linked the framework correctly. At the beginning of the class ContactViewController header file, I #import < MapKit/MapKit.h >.

Error Messages

I believe I have correctly linked the framework so my project, as shown below. Am I missing anything? Why is this not working?

Link With Libraries

Appreciate your help! R

Rossi
  • 609
  • 6
  • 14
  • That is the right framework. You might want to delete it, and it again, maybe even clean the project. – Vikings May 19 '12 at 17:07
  • I just tried this... its still giving me the same error for the line: mapView=[[MKMapView alloc] init] – Rossi May 19 '12 at 17:43
  • In your post you have spaces in the import between the brackets and MapKit/Mapkit.h #import < MapKit/MapKit.h > , try it without the spaces. – Jenn May 20 '12 at 00:31
  • Thanks - good observation. However, I only did that because in stack overflow, the words MapKit/Mapkit.h wouldn't show up without spaces between it and the brackets. – Rossi May 20 '12 at 13:52

1 Answers1

1

I had this exact same issue, your right to link it as you have done, however you must also include the framework in your file.

#import using angle brackets < > and quote marks " "

Hope this helps,

Bianca

Community
  • 1
  • 1
November
  • 224
  • 2
  • 11