一,經歷
1> 出現了以下錯誤,感覺像是GiftAnimationView文件的問題
/Users/liuzhu/Library/Developer/Xcode/DerivedData/testTimerShowScrollView-gwbgymjoyrylqjerhpxxcxbmbcdm/Build/Intermediates/testTimerShowScrollView.build/Debug-iphonesimulator/testTimerShowScrollView.build/Objects-normal/x86_64/GiftAnimationView.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2> 於是我重新建了一個GiftAnimationView類文件,結果依然報此錯誤.於是我新建了一個工程,可是依舊彈出此錯誤
3> 我實在沒轍了,只能檢測所有GiftAnimationView出現的地方,結果錯誤還真是有個性:
#import "GiftAnimationView.m"
會先編譯一次頭文件里面的方法,再編譯一遍實現文件里面的方法,於是就出現了2次重復的方法調用.
