Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GiftAnimationView"
1> error 详情:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GiftAnimationView", referenced from:
_OBJC_CLASS_$_GiftFoAnimationView in GiftFoAnimationView.o
"_OBJC_METACLASS_$_GiftAnimationView", referenced from:
_OBJC_METACLASS_$_GiftFoAnimationView in GiftFoAnimationView.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2> 这个错误是出自于移动文件到另一个demo 工程,而被移动的文件中包含了另一个类,可是 demo 工程中右没有这个类GiftAnimationView,于是就产生了这样的错误.
二,总结:
1> 看到_OBJC_CLASS_$_GiftAnimationView in GiftFoAnimationView.o相关的问题,应该想到是缺少类造成的.