Could not instantiate class named MKMapView

后端 未结 9 1492
天涯浪人
天涯浪人 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:30

    I noticed that I was getting this message (on top of the original one mentioned in this post) when I was building and running on the simulator:

    ld: warning: ignoring file /Users/peter/programming/iPhone/iNspector/MapKit.framework/MapKit, file was built for unsupported file format which is not the architecture being linked (i386)

    Then I just connected my iPhone, build and ran on the device, and the map worked.

    So it seems that the MapKit framework cannot be compiled on the 386 architecture, it needs the device.

提交回复
热议问题