我将我的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)
我花了好几个小时试图通过在构建设置下切换安置来解决这个问题,但没有什么对我有用。
这是我目前为我的架构所拥有的
有人有什么想法吗?
答案 0 :(得分:2)
试试这个:删除派生数据并再次编译。有时即使你清理了项目,pod库也不会被编译,当我更新到cocoapods 1.0.1
时,这种情况发生在我身上。