Xcode5,项目部署到设备,但模拟器出现构建错误



当我通过xcode5将我的应用程序部署到我的手机时,它可以找到,但是当我试图将它部署到模拟器之一时,我得到以下错误。

ld: warning: ignoring file /Users/benpearce/Downloads/MapKit.framework/MapKit, missing required architecture i386 in file /Users/benpearce/Downloads/MapKit.framework/MapKit (2 slices)
Undefined symbols for architecture i386:
  "_MKCoordinateRegionMakeWithDistance", referenced from:
      -[MapKitView createViewWithOptions:] in MapKit.o
  "_OBJC_CLASS_$_MKMapView", referenced from:
      objc-class-ref in MapKit.o
  "_OBJC_CLASS_$_MKPinAnnotationView", referenced from:
      objc-class-ref in MapKit.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

有人能看到发生了什么吗?

MapKit框架缺少i386模拟器的二进制文件。模拟器是一个Mac应用程序,需要为i386 Intel处理器编译的代码资源。你从哪里得到MapKit的?

如果这是苹果的MapKit,你应该包括Xcode提供的框架。在Xcode中通过选择Project, Build Phases, Link Binaries with Libraries, +,选择MapKit.framework来添加它。

框架也在你的下载目录中,为什么?

相关内容

  • 没有找到相关文章

最新更新