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位列爲有效的體系結構。
謝謝。這幫助我找到了我的cocoapods問題,這是因爲某些原因,項目被設置爲Mac OSX,而不是iOS! –