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相關的問題,應該想到是缺少類造成的.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM