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

 苏绿儿520 发布于 2023-01-15 07:38

我试图添加所有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 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)

Ricky.. 18

仔细检查您的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的Google Maps SDK添加到您的项目中.

很可能你忘记添加 ImageIO.framework

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有