Podfile错误:架构arm64的未定义符号

Podfile错误:架构arm64的未定义符号

问题描述:

我更新了我的cocoapods版本到1.0,现在我得到了一些有关架构的错误。这是我的错误看起来像:Podfile错误:架构arm64的未定义符号

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) 

我已经花了几个小时试图通过构建下设置之间进行切换沉渣解决这一问题,但没有为我工作。

这是我目前有我的架构

enter image description here

人有什么想法?

+0

可能的重复[未定义符号的架构arm64](http://stackoverflow.com/questions/19213782/undefined-symbols-for-architecture-arm64) – Notlikethat

+0

@Notlikethat我已经从字面上尝试了一切在你的链接帖子和什么都没有已经解决了这个问题... – scientiffic

试试这个:删除派生数据并重新编译。有时候,即使你清理了项目,pod库也不会被编译,当我更新到cocoapods 1.0.1时,发生在我身上。