Duplizieren-Symbol _OBJC_CLASS_$_LoginController

Ich weiß, diese Frage wurde schon oft gefragt, aber keiner hat mein problem gelöst uptill jetzt. Ich weiß, dass dieser Fehler Auftritt, wenn du mehrere Kopien der Datei im Projekt.
Ich versuchte, reinigen Sie das erstellen, löschen Sie alle LoginController.m Datei in Kompilieren Quellen und dann bauen. Ordnung - keine Fehler. Wenn ich noch meine LoginController.m-Datei in Complie Ressourcen-compiler erneut gab den gleichen Fehler.

Nächsten ich, was ich versucht habe ist alle löschen .m-Dateien aus Quellen Kompilieren, reinigen und neu aufgebaut werden können, und fügte hinzu, jeder .m-Datei sehr sorgfältig. Wieder gleiche Fehler ausgelöst wurde. Ich fand keine doppelte Datei, dann warum zum Teufel ist das passiert?

Bitte jemand mich leiten. Vielen Dank.

EDIT:
Fehler:

Ld /Users/svp/Library/Developer/Xcode/DerivedData/TryAgain-dhbbyywxclvxfodbunqysmmfefcl/Build/Products/Debug-iphonesimulator/TryAgain.app/TryAgain normal i386
cd /Users/svp/Desktop/TryAgain
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/svp/Library/Developer/Xcode/DerivedData/TryAgain-dhbbyywxclvxfodbunqysmmfefcl/Build/Products/Debug-iphonesimulator -L/Users/svp/Desktop/TryAgain/TryAgain -L/Users/svp/Desktop/TryAgain/../CorePlot_1.0/Binaries/iOS -F/Users/svp/Library/Developer/Xcode/DerivedData/TryAgain-dhbbyywxclvxfodbunqysmmfefcl/Build/Products/Debug-iphonesimulator -filelist /Users/svp/Library/Developer/Xcode/DerivedData/TryAgain-dhbbyywxclvxfodbunqysmmfefcl/Build/Intermediates/TryAgain.build/Debug-iphonesimulator/TryAgain.build/Objects-normal/i386/TryAgain.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -fobjc-arc -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework MediaPlayer -lz -framework AVFoundation -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -lCorePlot-CocoaTouch -o /Users/svp/Library/Developer/Xcode/DerivedData/TryAgain-dhbbyywxclvxfodbunqysmmfefcl/Build/Products/Debug-iphonesimulator/TryAgain.app/TryAgain

ld: duplicate symbol _OBJC_CLASS_$_LoginController in /Users/svp/Library/Developer/Xcode/DerivedData/TryAgain-dhbbyywxclvxfodbunqysmmfefcl/Build/Intermediates/TryAgain.build/Debug-iphonesimulator/TryAgain.build/Objects-normal/i386/LoginController.o and /Users/svp/Library/Developer/Xcode/DerivedData/TryAgain-dhbbyywxclvxfodbunqysmmfefcl/Build/Intermediates/TryAgain.build/Debug-iphonesimulator/TryAgain.build/Objects-normal/i386/Navigator.o for architecture i386
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1

  • Bitte zeigen Sie die ganze linker-Fehler, anstatt zu versuchen, es zu beschreiben. Es wird in der Regel über mehr Informationen darüber, wie das symbol wird verdoppelt.
  • Habe ich erwähnt, der Fehler.
  • Sie haben gesucht LoginController im Projekt-Dateien? Es kann sein das es mal in einer anderen Datei...
  • Ich habe in der Projekt-navigation als auch im finder, dass es keine zwei loginController-Dateien.
  • Ich meine die Suche, als text-in das Projekt. Es ist nicht üblich, aber es kann passieren.
  • Vergessen Sie es, erhalten Sie einen compiler-Fehler, bevor der linker seine Sache macht.
  • Ich habe auch überprüft den text durch. es ist nur eine Datei .h und .m-plus-erklärt in einer Datei für die Verwendung. Alle anderen alternativen?

InformationsquelleAutor NightFury | 2012-11-24
Schreibe einen Kommentar