Duplicate Symbole in xCode, But no duplicate exist

岁酱吖の 提交于 2020-01-04 15:14:10

问题


The Problem Xcode (Version 4.6.1 (4H512)) is complaining a duplicate symbole problem.

duplicate symbol _OBJC_METACLASS_$_PacksStoreHelper in: /Users/shannoga/Library/Developer/Xcode/DerivedData/English_Club-cyrjamihpabtvtdkvctjwyidupuo/Build/Intermediates/English Club.build/Debug-iphonesimulator/English Club.build/Objects-normal/i386/PacksStoreViewController.o /Users/shannoga/Library/Developer/Xcode/DerivedData/English_Club-cyrjamihpabtvtdkvctjwyidupuo/Build/Intermediates/English Club.build/Debug-iphonesimulator/English Club.build/Objects-normal/i386/PacksStoreHelper.o duplicate symbol _OBJC_CLASS_$_PacksStoreHelper in: /Users/shannoga/Library/Developer/Xcode/DerivedData/English_Club-cyrjamihpabtvtdkvctjwyidupuo/Build/Intermediates/English Club.build/Debug-iphonesimulator/English Club.build/Objects-normal/i386/PacksStoreViewController.o /Users/shannoga/Library/Developer/Xcode/DerivedData/English_Club-cyrjamihpabtvtdkvctjwyidupuo/Build/Intermediates/English Club.build/Debug-iphonesimulator/English Club.build/Objects-normal/i386/PacksStoreHelper.o ld: 2 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Usually I go to the Target Build Pases -> Compile Sources and look for the duplicate.

This time as you can see there is no duplication there:

What I tried and some wacky stuff :

  1. Deleting Derived Data.
  2. Removing the project and restarted the mac.
  3. I even tried to delete the so called "duplicate" files and here it got even more wacky - The target successfully builded and there was no warning even that the files were not visible in the file navigator. After the build the app works fine but one of the controllers is not visible.
  4. I Alt+Clicked the import statements of the duplicate files in other files that uses them and it gets me onto a "Zombie" file with all the code inside. But I can not see where xCode get the file from.

What the hell could it be?

I am about to shoot myself. Please save me.

来源:https://stackoverflow.com/questions/15784455/duplicate-symbole-in-xcode-but-no-duplicate-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!