我有一个使用CocoaPods的项目。它工作但有些东西坏了。
如果我定位模拟器它会编译,但如果我定位设计(构建或存档),它会抛出链接器错误。
ld: warning: ignoring file /Users/myuser/ios/share/share/libPods.a, file was built for archive which is not the architecture being linked (armv7s): /Users/myuser/ios/share/share/libPods.a
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from:
objc-class-ref in BackendProxy.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我真的需要一些帮助,因为我真的被困了。
谢谢!
编辑:我删除了那个旧的libPods.a,现在它给了我:ld: library not found for -lPods
但仅在Archive或Build for iosDevice上,这仍然在模拟器上工作。
答案 0 :(得分:3)
尝试从armv7s
部分删除valid architectures
。
Build Settings -> Architectures -> Valid Architectures