3

当谷歌地图 SDK 1.5 版与 iOS 7 集成时。我收到了这个错误。

ld: warning: ignoring file /Users/apps/Desktop/Map/GoogleMaps.framework/GoogleMaps, missing required architecture x86_64 in file /Users/apps/Desktop/Map/GoogleMaps.framework/GoogleMaps (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GMSCameraPosition", referenced from:
  objc-class-ref in MapViewController.o
"_OBJC_CLASS_$_GMSMapView", referenced from:
  objc-class-ref in MapViewController.o
"_OBJC_CLASS_$_GMSMarker", referenced from:
  objc-class-ref in MapViewController.o
"_OBJC_CLASS_$_GMSServices", referenced from:
  objc-class-ref in MapAppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我不知道如何解决这个问题,任何人都可以帮助我解决这个问题。

4

1 回答 1

3

错误的关键部分是表示:未找到架构 x86_64 的符号。

我猜你正在为 arm64bit 构建,而 Google Maps SDK 没有 64 位版本。

尝试为 armv7 构建,仅 armv7s

于 2013-10-11T10:31:01.783 回答