linker command failed with exit

2018-02-02  本文已影响0人  永永不止步

一、 没有定义的类参与编译

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_People", referenced from:
      objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

二、 重复定义的类参与编译

duplicate symbol _OBJC_CLASS_$_Person in:
    /Users/mc/Library/Developer/Xcode/DerivedData/test-dlvutcgcpudtifekmtfntdhisfna/Build/Intermediates.noindex/test.build/Debug-iphonesimulator/test.build/Objects-normal/x86_64/Person-A9830D8080639151.o
duplicate symbol _OBJC_METACLASS_$_Person in:
    /Users/mc/Library/Developer/Xcode/DerivedData/test-dlvutcgcpudtifekmtfntdhisfna/Build/Intermediates.noindex/test.build/Debug-iphonesimulator/test.build/Objects-normal/x86_64/Person-A9830D8080639151.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
上一篇下一篇

猜你喜欢

热点阅读