在我的应用程序中,我收到此错误:
链接器命令失败,退出代码为1
/Users/mac/Library/Developer/Xcode/DerivedData/BalirajaTractor-cfrcwepounrfzmcqcpnfxpsftfdg/Build/Intermediates/BalirajaTractor.build/Debug-iphonesimulator/BalirajaTractor.build/Objects-normal/x86_64/MenuViewController.o
duplicate symbol _areaArray in:
/Users/mac/Library/Developer/Xcode/DerivedData/BalirajaTractor-cfrcwepounrfzmcqcpnfxpsftfdg/Build/Intermediates/BalirajaTractor.build/Debug-iphonesimulator/BalirajaTractor.build/Objects-normal/x86_64/AddProductViewController.o
/Users/mac/Library/Developer/Xcode/DerivedData/BalirajaTractor-cfrcwepounrfzmcqcpnfxpsftfdg/Build/Intermediates/BalirajaTractor.build/Debug-iphonesimulator/BalirajaTractor.build/Objects-normal/x86_64/MenuViewController.o
ld: 8 duplicate symbols for architecture x86_64
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
最佳答案
我最近遇到了类似的错误,因为我使用的是#import class.m
而不是#import class.h
。检查您是否犯了这个错误。