2013-11-28 65 views
2

我一直在工作的一个项目数周的使用的CocoaPods缺失的ARCH:XCode项目打破了由于对arm64

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位列为有效的体系结构。

回答

3

我遇到了同样的问题。对我而言,问题在于Pods项目(在共享工作区中)没有设置为为arm64构建。

要解决此问题,请单击荚项目,并更改设置为整个项目和每一个目标包括arm64:

arm64 architectures pod 64-bit build cocoapods

这将构建所有arm64支持舱体以及,这应该解决链接器错误。

+0

谢谢。这帮助我找到了我的cocoapods问题,这是因为某些原因,项目被设置为Mac OSX,而​​不是iOS! –