I have a project that uses CocoaPods. It worked, but something broke.
It compiles if I am targeting a simulator, but if I am targeting a device (build or archive), it throws a linker error.
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)
I really need help because I am really stuck.
Thank!
EDIT: I removed this libpods.a, which was old, and now it gives me:
ld: library not found for -lPods
But only for Archive or Build for iosDevice it still works on the simulator.
source
share