Could not instantiate class named MKMapView

后端 未结 9 1473
天涯浪人
天涯浪人 2020-12-23 20:14

I may be doing something really stupid here as I\'ve done it before and it worked and now...

Created a new iPad project, in the details view I added a MKMapView, add

9条回答
  •  鱼传尺愫
    2020-12-23 20:41

    In regards to @futureshocked's input, I also came across the

    Id: warning: ignoring file /blah.../MapKit, file was built for unsupported file format which is not the architecture being linked (i386)

    issue.

    **Check to make sure you didn't copy the MapKit framework into your local project directory when you added it to your project. I accidentally did this and XCode was giving me the above error. So I removed it from my project directory (in Finder), recompiled, and everything was normal again.

    If you don't have the Framework in your project, go ahead and re-link as stated in the answer above.

    Found a good tutorial on getting started with MapKit:
    http://www.youtube.com/watch?v=X-3jM24EIGM&feature=related

提交回复
热议问题