duplicate symbols for architecture armv7
This can happen if you accidentally #import a .m file instead of the .h!
This can happen if you accidentally #import a .m file instead of the .h!
You could also get this error if you mistakenly let Xcode’s auto-complete for #import statements specify the ‘.m” file for the ‘duplicate’ class instead of the ‘.h’.
Carl’s answer is right, but for the wrong reasons: there’s actually nothing wrong with linking static libraries together, as we can see using Carl’s own sample. Set-up Carl’s sample code and then do this: (I use libtool because that is what XCode uses) neutron:libtest jamie$ libtool -o a2.a a.a c.a neutron:libtest jamie$ libtool -o b2.a … Read more