我试图重命名我的项目,但Xcode崩溃了并且无法再次打开,所以我创建了一个新项目并复制了所需的文件并构建了要出现此错误的项目...我不知道如何解决此问题。有点绝望..真的需要帮助
duplicate symbol _response in:
/Users/myname/Library/Developer/Xcode/DerivedData/Garda_Station_Locator-dhfsoolpnjuqneegoeyzxismsykb/Build/Intermediates/Garda Station Locator.build/Debug-iphonesimulator/Garda Station Locator.build/Objects-normal/x86_64/Service.o
/Users/myname/Library/Developer/Xcode/DerivedData/Garda_Station_Locator-dhfsoolpnjuqneegoeyzxismsykb/Build/Intermediates/Garda Station Locator.build/Debug-iphonesimulator/Garda Station Locator.build/Objects-normal/x86_64/County.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
最佳答案
Service和County文件似乎都带有响应符号。也许旧项目的预处理器符号中排除了一个,或者两个文件实际上都没有在目标中编译。