只有m文件会报这个错

duplicate symbol _OBJC_IVAR_$_LogisticsViewController._SendCompany in:
    /Users/macosx/Library/Developer/Xcode/DerivedData/Mixshq-ayvrdglvkprnuoetyeoyrzdlxsfc/Build/Intermediates/Mixshq.build/Debug-iphonesimulator/Mixshq.build/Objects-normal/x86_64/LogisticsViewController.o
    /Users/macosx/Library/Developer/Xcode/DerivedData/Mixshq-ayvrdglvkprnuoetyeoyrzdlxsfc/Build/Intermediates/Mixshq.build/Debug-iphonesimulator/Mixshq.build/Objects-normal/x86_64/YFLogisticsViewController.o
duplicate symbol _OBJC_IVAR_$_LogisticsViewController._tableView in:
    /Users/macosx/Library/Developer/Xcode/DerivedData/Mixshq-ayvrdglvkprnuoetyeoyrzdlxsfc/Build/Intermediates/Mixshq.build/Debug-iphonesimulator/Mixshq.build/Objects-normal/x86_64/LogisticsViewController.o
    /Users/macosx/Library/Developer/Xcode/DerivedData/Mixshq-ayvrdglvkprnuoetyeoyrzdlxsfc/Build/Intermediates/Mixshq.build/Debug-iphonesimulator/Mixshq.build/Objects-normal/x86_64/YFLogisticsViewController.o
duplicate symbol _OBJC_CLASS_$_LogisticsViewController in:
    /Users/macosx/Library/Developer/Xcode/DerivedData/Mixshq-ayvrdglvkprnuoetyeoyrzdlxsfc/Build/Intermediates/Mixshq.build/Debug-iphonesimulator/Mixshq.build/Objects-normal/x86_64/LogisticsViewController.o
    /Users/macosx/Library/Developer/Xcode/DerivedData/Mixshq-ayvrdglvkprnuoetyeoyrzdlxsfc/Build/Intermediates/Mixshq.build/Debug-iphonesimulator/Mixshq.build/Objects-normal/x86_64/YFLogisticsViewController.o
duplicate symbol _OBJC_METACLASS_$_LogisticsViewController in:
    /Users/macosx/Library/Developer/Xcode/DerivedData/Mixshq-ayvrdglvkprnuoetyeoyrzdlxsfc/Build/Intermediates/Mixshq.build/Debug-iphonesimulator/Mixshq.build/Objects-normal/x86_64/LogisticsViewController.o
    /Users/macosx/Library/Developer/Xcode/DerivedData/Mixshq-ayvrdglvkprnuoetyeoyrzdlxsfc/Build/Intermediates/Mixshq.build/Debug-iphonesimulator/Mixshq.build/Objects-normal/x86_64/YFLogisticsViewController.o
duplicate symbol _OBJC_IVAR_$_LogisticsViewController._postnumber in:
    /Users/macosx/Library/Developer/Xcode/DerivedData/Mixshq-ayvrdglvkprnuoetyeoyrzdlxsfc/Build/Intermediates/Mixshq.build/Debug-iphonesimulator/Mixshq.build/Objects-normal/x86_64/LogisticsViewController.o
    /Users/macosx/Library/Developer/Xcode/DerivedData/Mixshq-ayvrdglvkprnuoetyeoyrzdlxsfc/Build/Intermediates/Mixshq.build/Debug-iphonesimulator/Mixshq.build/Objects-normal/x86_64/YFLogisticsViewController.o
ld: 5 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing first 200 warnings only

发现很多东西都报这个错

linker command failed with exit code 1 (use -v to see invocation)

所以只看这个基本没啥用

你可能感兴趣的:(只有m文件会报这个错)