duplicate symbols for architecture armv7
Solution 1:
This can happen if you accidentally #import
a .m
file instead of the .h
!
Solution 2:
Generally, this kind of error occurs due to duplicate classes and xibs in your project folder. For example, in my project I had some class files duplicated(.h/.m files). You can see these duplicate classes under target->Build phases->compile sources
.
Just look and remove extra classes. Problem will be solved.
Solution 3:
Happens with static variables in a header file (header file included in more than one implementations file).
Solution 4:
I was getting this error because I used the Xcode recommended warning flags. GCC_NO_COMMON_BLOCKS = YES was causing the issue. Setting this back to NO fixed it for me.