今天在调试程序中,编译链接时老提示下面的错误:
duplicate symbol _OBJC_CLASS_$_xxxx in:
axxx.o
bxxx.o
ld: 2 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
原因是因为自己不小心在导入头文件写错了:
#import "xxxx.m"