gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 03:26:12 25 4
gpt4 key购买 nike

我尝试在框架中添加所有 GoogleMaps.FrameworkGoogleMaps.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 的 Google Maps SDK 添加到您的项目的分步说明。

您很可能忘记添加 ImageIO.framework

关于ios - 编译 GooglsMaps.Framework 时 Apple Mach O Link Key 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23675785/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com