ios – 编译GooglsMaps.Framework时Apple Mach O Link Key失败

我试图在框架中添加所有GoogleMaps.Framework和GoogleMaps.bundle
执行时,会导致以下错误

我不知道究竟发生了什么.您能否告诉我添加Google MAP SDK框架的正确方法

我甚至添加了框架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)

解决方法

仔细检查您的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

了解有关将iOS Maps SDK for iOS添加到项目中的分步说明.

很可能你忘了添加ImageIO.framework

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...