duplicate symbol _OBJC_METACLASS_$_TabbarButton in: /Users/hw201406/Library/Developer/Xcode/DerivedData/xxx-gafskbgawbctznekgfxqhaugwjce/Build/Intermediates/xxx.build/Debug-iphonesimulator/xxx06.build/Objects-normal/i386/TabbarButton-FDEB19611A30D765.o /Users/hw201406/Library/Developer/Xcode/DerivedData/xxx-gafskbgawbctznekgfxqhaugwjce/Build/Intermediates/xxx.build/Debug-iphonesimulator/xxx06.build/Objects-normal/i386/TabbarButton-F73450EF7ABFD855.o
难怪按照下面的办法解决不了问题...
编译程序出现如标题所示的错误时,表示你链接了同一个文件两次。
在.h文件中用@class TabbarButton,然后在.m文件中导入TabbarButton.h文件
duplicate symbol _OBJC_METACLASS_$ 报错记录,布布扣,bubuko.com
时间: 2024-10-03 18:01:27