【问题标题】:architecture x86_64 after building构建后的架构 x86_64
【发布时间】:2025-12-16 04:30:02
【问题描述】:

我使用的是 xcode 7,在构建时遇到了这个问题

  Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_GMSServices", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

有什么遗漏吗?

【问题讨论】:

    标签: ios objective-c linker-errors undefined-symbol


    【解决方案1】:

    我猜你在项目中使用了谷歌地图框架。

    确保添加 Google 地图框架所需的所有必要框架

    按照page 安装 Google Maps SDK

    【讨论】: