xcode 编译错误的 之 头文件 包含成.m了

时间:2021-08-07 16:45:43

duplicate symbol _OBJC_CLASS_$_AutoTableViewViewController in:

    /Users/apple/Library/Developer/Xcode/DerivedData/masonry自动布局-cragjuqaxcsyhcckrysbcptlqprh/Build/Intermediates/masonry自动布局.build/Debug-iphonesimulator/masonry自动布局.build/Objects-normal/i386/ForCreateVerticalViewController.o

    /Users/apple/Library/Developer/Xcode/DerivedData/masonry自动布局-cragjuqaxcsyhcckrysbcptlqprh/Build/Intermediates/masonry自动布局.build/Debug-iphonesimulator/masonry自动布局.build/Objects-normal/i386/AutoTableViewViewController.o

duplicate symbol _OBJC_METACLASS_$_AutoTableViewViewController in:

    /Users/apple/Library/Developer/Xcode/DerivedData/masonry自动布局-cragjuqaxcsyhcckrysbcptlqprh/Build/Intermediates/masonry自动布局.build/Debug-iphonesimulator/masonry自动布局.build/Objects-normal/i386/ForCreateVerticalViewController.o

    /Users/apple/Library/Developer/Xcode/DerivedData/masonry自动布局-cragjuqaxcsyhcckrysbcptlqprh/Build/Intermediates/masonry自动布局.build/Debug-iphonesimulator/masonry自动布局.build/Objects-normal/i386/AutoTableViewViewController.o

ld: 2 duplicate symbols for architecture i386

 

这个 问题是 我把 AutoTableViewViewController 头文件  写成了  .m  而不是  .h