ios - Podfile 错误 : Undefined Symbols for Architecture arm64

标签 ios architecture cocoapods arm64

我将我的 cocoapods 版本更新为 1.0,现在遇到了一系列有关架构的错误。这是我的错误的样子:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_Reachability", referenced from:
      objc-class-ref in ReachabilityManager.o
     (maybe you meant: _OBJC_CLASS_$_ReachabilityManager)
  "_OBJC_CLASS_$_PBJVision", referenced from:
      objc-class-ref in NewSpinViewController.o
  "_PBJVisionPhotoImageKey", referenced from:
      -[NewSpinViewController vision:capturedPhoto:error:] in NewSpinViewController.o
  "_kReachabilityChangedNotification", referenced from:
      -[NoInternetViewController viewDidLoad] in NoInternetViewController.o
  "_PBJVisionPhotoThumbnailKey", referenced from:
      -[NewSpinViewController vision:capturedPhoto:error:] in NewSpinViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我花了几个小时试图通过在build设置下切换定居点来解决这个问题,但没有什么对我有用。

这就是我目前的架构

enter image description here

有人有想法么?

最佳答案

试试这个:删除派生数据并再次编译。有时,即使您清理了项目,pod 库也根本无法编译,当我更新到 cocoapods 1.0.1 时,这发生在我身上。 .

关于ios - Podfile 错误 : Undefined Symbols for Architecture arm64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37198199/

相关文章:

ios - DateFormatter 不返回 "HH:mm:ss"的日期

iphone - writeToFile 原子地返回 NO

android - 帮助我的 Android 应用程序架构

ios - 无法将 AFNetworking 依赖项导入 Cocoapod

xcode - 如何在 podfile 中为 Xcode 项目指定多个目标?

ios - 如何在IOS中的WKWebView中获取完整的cookie详细信息

ios - 失去与 "iPhone"的连接

Node.js Web 和移动应用程序 - 在哪里读取 Excel 文件?

architecture - 客户定制

ios - 将带有源的 Pod 依赖项添加到 .podspec