我已经在一个使用 CocoaPods 的项目上工作了几个星期:
platform :ios, '7.0'
pod 'SVProgressHUD', '~>1.0'
pod 'Reachability', '~> 3.1.1'
pod 'UIDevice-Hardware', '~> 0.1.3'
podfile 也已经好几个星期没有改变了。但是,今天我突然遇到了构建错误,我无法弄清楚出了什么问题或构建突然开始失败的原因。
ld: warning: ignoring file /Users/jim/Library/Developer/Xcode/DerivedData/App-bgzqwpbxhsvbvmhdfdvgafjurltc/Build/Products/Debug-iphoneos/libPods.a, missing required architecture arm64 in file /Users/jim/Library/Developer/Xcode/DerivedData/App-bgzqwpbxhsvbvmhdfdvgafjurltc/Build/Products/Debug-iphoneos/libPods.a (2 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SVProgressHUD", referenced from:
objc-class-ref in BCRegisterViewController.o
"_OBJC_CLASS_$_MSClient", referenced from:
objc-class-ref in BCCentralService.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
有什么想法可能是错的吗?我查看了所有项目和目标,他们将 64 位列为有效架构。