【问题标题】:Apple Mach O Link Key failed when compiling GooglsMaps.Framework编译 GooglsMaps.Framework 时 Apple Mach O Link Key 失败
【发布时间】:2014-07-03 18:08:31
【问题描述】:

我尝试在框架中添加所有GoogleMaps.FrameworkGoogleMaps.bundle 执行的时候会报如下错误

我不知道到底发生了什么。您能告诉我添加Google MAP SDK frameworks 的正确方法吗?

我什至添加了框架 libc++.dylib。

错误信息

Undefined symbols for architecture i386:
  "_CGImageSourceCreateImageAtIndex", referenced from:
      _GMSCreateCGImageWithData in GoogleMaps(GMMImageSupport.o)
  "_CGImageSourceCreateWithDataProvider", referenced from:
      _GMSCreateCGImageWithData in GoogleMaps(GMMImageSupport.o)
  "_GLKMatrix3Identity", referenced from:
      gmscore::vector::GLLineGroup::SetTransform(gmscore::math::Matrix4f const&, gmscore::base::reffed_ptr<gmscore::vector::Camera> const&) in GoogleMaps(GLLineGroup.o)
  "_GLKMatrix4Invert", referenced from:
      -[GMSStreetViewView fadeOutLastScene] in GoogleMaps(GMSStreetViewView.o)
      gmscore::streetview::Camera::Unproject(gmscore::math::Vector2f const&, bool*) const in GoogleMaps(Camera-B046EE312980DB98.o)
      gmscore::vector::Camera::UpdateInternals() in GoogleMaps(Camera-3E3856CABC8A9C74.o)
      gmscore::renderer::Camera3D::SetTransform(gmscore::math::Matrix4f const&) in GoogleMaps(Camera3D.o)
      gmscore::renderer::Camera3D::Transform() in GoogleMaps(Camera3D.o)
      non-virtual thunk to gmscore::renderer::Camera3D::Transform() in GoogleMaps(Camera3D.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

【问题讨论】:

    标签: ios google-maps-api-3


    【解决方案1】:

    仔细检查您的 Xcode 项目中是否包含所有这些框架

    AVFoundation.framework
    CoreData.framework
    CoreLocation.framework
    CoreText.framework
    GLKit.framework
    ImageIO.framework
    libc++.dylib
    libicucore.dylib
    libz.dylib
    OpenGLES.framework
    QuartzCore.framework
    SystemConfiguration.framework
    

    请访问:- https://developers.google.com/maps/documentation/ios/start#getting_the_google_maps_sdk_for_ios

    了解有关将 Google Maps SDK for iOS 添加到您的项目的分步说明。

    您很可能忘记添加ImageIO.framework

    【讨论】:

      猜你喜欢
      • 2016-02-05
      • 2011-07-16
      • 2014-01-26
      • 2017-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-06
      • 1970-01-01
      相关资源
      最近更新 更多