ios - GoogleMaps for iOS 链接器错误

标签 ios google-maps

在构建应用程序时出现以下错误我已经搜索了很多但我无法找出问题所在。

ld: warning: ignoring file /Users/username/GoogleMaps/GoogleMaps.framework/GoogleMaps, missing required architecture arm64 in file /Users/username/GoogleMaps/GoogleMaps.framework/GoogleMaps (2 slices) Undefined symbols for architecture arm64: "_OBJC_CLASS_$_GMSPolyline", referenced from: objc-class-ref in GPSController.o "_OBJC_CLASS_$_GMSCameraPosition", referenced from: objc-class-ref in GPSController.o "_OBJC_CLASS_$_GMSMutablePath", referenced from: objc-class-ref in GPSController.o "_OBJC_CLASS_$_GMSMarker", referenced from: objc-class-ref in GPSController.o "_OBJC_CLASS_$_GMSMapView", referenced from: objc-class-ref in GPSController.o "_OBJC_CLASS_$_GMSServices", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

我正在使用 GoolgeMaps SDK 1.4.3

PS:- 我是 iOS 编程的新手,所以请避免任何错误。

最佳答案

将值 $(inherited) 添加到目标的 BuildSettings->Linking->Other Linker Flags

如果您正在开发 SDK/框架/POD,您应该执行与上述相同的操作,但在目标名称 PROJECTNAME_tests 下进行。

应该可以解决问题。

关于ios - GoogleMaps for iOS 链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32644843/

相关文章:

ios - 在 podspec 中启用 static_framework 会破坏现有应用程序吗?

ios - 作为 NSObject 子类的条码扫描器

ios - 快速搜索最接近的相似值的值,无论顺序如何

javascript - 使用 phonegap 和 google maps api 删除单个标记

android - ViewPager : onMapReady() is never called after calling getMapAsync() 中 fragment 中的 MapView

ios - 在旋转时调整呈现 View 的大小

ios - 在 UITableViewCell 中设置 UIScrollView 内容偏移量在非重复使用的出队单元格中不起作用

javascript - 如何让谷歌标记 url 在新的浏览器窗口或标签中打开?

android - 如何以公里为单位查找两个位置之间的距离(按纬度和经度)

javascript - 如何根据缩放谷歌地图api计算圆半径