2013-10-01 7 views
-2

Je suis en train de compiler mon application, mais il a toujours cette erreur 'Apple Mac-O Linker Erreur linker commande a échoué avec le code de sortie 1 (utiliser -v pour voir invocation)' Voici la Code de l'erreur:Apple Mach-O Linker Erreur, Objectif C

Ld /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Products/Debug-iphonesimulator/Tap!.app/Tap! normal i386 
    cd "/Users/Sarthak/Documents/Programming/iOS and Mac OSX Programming/iOS/Tap!" 
    setenv IPHONEOS_DEPLOYMENT_TARGET 7.0 
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Products/Debug-iphonesimulator -F/Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Products/Debug-iphonesimulator -filelist /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/Tap!.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/Tap!_dependency_info.dat -o /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Products/Debug-iphonesimulator/Tap!.app/Tap! 

duplicate symbol _OBJC_IVAR_$_tapScoreController.score in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapViewController.o 
duplicate symbol _OBJC_IVAR_$_tapScoreController.gameStart in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapViewController.o 
duplicate symbol _OBJC_METACLASS_$_tapScoreController in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapViewController.o 
duplicate symbol _OBJC_CLASS_$_tapScoreController in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapViewController.o 
duplicate symbol _OBJC_IVAR_$_tapScoreController.score in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/main.o 
duplicate symbol _OBJC_IVAR_$_tapScoreController.gameStart in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/main.o 
duplicate symbol _OBJC_METACLASS_$_tapScoreController in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/main.o 
duplicate symbol _OBJC_CLASS_$_tapScoreController in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/main.o 
duplicate symbol _OBJC_IVAR_$_tapScoreController.score in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapAppDelegate.o 
duplicate symbol _OBJC_IVAR_$_tapScoreController.gameStart in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapAppDelegate.o 
duplicate symbol _OBJC_METACLASS_$_tapScoreController in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapAppDelegate.o 
duplicate symbol _OBJC_CLASS_$_tapScoreController in: 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapScoreController.o 
    /Users/Sarthak/Library/Developer/Xcode/DerivedData/Tap!-gtxtrvaffmxxtocfqejemafixgvx/Build/Intermediates/Tap!.build/Debug-iphonesimulator/Tap!.build/Objects-normal/i386/tapAppDelegate.o 
ld: 12 duplicate symbols for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
+0

avez-vous modifié votre débogage? – josh

+0

@sarthak semble votre tapScoreController et tapViewController a un problème.Je veux dire vérifier la déclaration. – Subrat

+0

qu'est-ce que tu as fait? SVP spécifier que d'abord – manujmv

Répondre

0

je me suis dit ce qui était mal, j'importer le fichier .h dans viewController.h et vue Controller.m, c'est pourquoi il ne fonctionne pas.