【问题标题】:Apple Mach-O linker errors While Archiving My project归档我的项目时出现 Apple Mach-O 链接器错误
【发布时间】:2014-05-15 03:12:10
【问题描述】:

我正在尝试归档我的第一个 iOS 项目,但出现以下错误。我用于身份验证的 Facebook SDK 和 Google Plus SDK 似乎有问题。我在stackoverflow上遇到过类似的问题,但没有一个解决方案对我有帮助。任何帮助,将不胜感激。提前致谢。

<pre>
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_FBRequest", referenced from:
      objc-class-ref in LoginViewController.o
  "_OBJC_CLASS_$_GTMLogger", referenced from:
      objc-class-ref in LoginViewController.o
  "_OBJC_CLASS_$_GTLQueryPlus", referenced from:
      objc-class-ref in LoginViewController.o
  "_kGTLAuthScopePlusLogin", referenced from:
      -[LoginViewController getInfoForGoogle] in LoginViewController.o
  "_OBJC_CLASS_$_GTLServicePlus", referenced from:
      objc-class-ref in LoginViewController.o
  "_OBJC_CLASS_$_GPPURLHandler", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_GPPSignIn", referenced from:
      objc-class-ref in LoginViewController.o
  "_OBJC_CLASS_$_FBSession", referenced from:
      objc-class-ref in AppDelegate.o
      objc-class-ref in LoginViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
</pre>

【问题讨论】:

  • 您使用的是哪个版本的 Google+ SDK?确保它至少为 1.5.0。

标签: ios facebook xcode5 google-plus facebook-ios-sdk


【解决方案1】:

您使用的框架不是 arm64 就绪的,即不适用于 64 位设备,您可以检查更新的框架是否可用,或从您的构建中排除 arm64

将构建设置中的架构设置为标准架构(armv7,armv7s)

Xcode 5 and iOS 7: Architecture and Valid architectures

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-04-06
    • 2023-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多