If you use Cocoapods like me, you may find that other answers do not help, because duplicates are generated automatically by the pod file.
What worked for me was to look at a list of duplicate characters, for example:
duplicate character _OBJC_METACLASS _ $ _ AFImageCache in:
___ / Construction / Products / Debug-iphoneos / libPods-AFNetworking.a (UIImageView + AFNetworking.o)
___ / Build / Products / Debug-iphoneos / libAFNetworking.a (UIImageView + AFNetworking.o)
ld: 214 duplicate characters for armv7 architecture clang: error: linker command did not work with exit code 1 (use -v to call the call)
Then go to your project / goal Build Settings β Other linker flags and remove the link to the duplicated block (in my case, AFNetworking).
Clean, re-create and it should work.
-
As far as I can tell, this can happen because one of the other blocks refers to AFNetworking, which leads to duplication.
source share