-4

私が構築するとき、私は得ています

 Ld /Users/Shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Products/Debug-iphoneos/appname.app/appname normal armv7
    cd "/Users/shouri/Desktop/appname Project/appname"
    setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Products/Debug-iphoneos -F/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Products/Debug-iphoneos -filelist /Users/shouri/Library/Developer/Xcode/DerivedDataappname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/appname.LinkFileList -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.1 -framework CoreData -framework AVFoundation -framework MobileCoreServices -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Products/Debug-iphoneos/appname.app/appname

duplicate symbol _OBJC_IVAR_$_HatsCamera.cameraSwitch in:
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_IVAR_$_HatsCamera.FrontCamera in:
    /Users/shouri/Library/Developer/Xcode/DerivedData/appaname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_IVAR_$_HatsCamera.captureImage in:
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_IVAR_$_HatsCamera.stillImageOutput in:
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_IVAR_$_HatsCamera.haveImage in:
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_IVAR_$_HatsCamera.imagePreview in:
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_CLASS_$_HatsCamera in:
    /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
    /Users/shourio/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_METACLASS_$_HatsCamera in:
    /Users/shouriLibrary/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
    /Users/shouri/Library/Developer/Xcode/DerivedDataappname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
ld: 8 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

どうすればこの問題を解決できますか? 何週間もインターネットを調べたのですが、自分の問題に合った最適な答えが見つかりません..

4

2 に答える 2

0
ld: 8 duplicate symbols for architecture armv7

あなたのエラーの理由です。プロジェクトのどこかに 2 つの同じファイルがあり、それがエラーの原因になっているようです。

プロジェクトとプロジェクト フォルダ内のファイルをよく見てHatsCamera.mください。BottomsCamera.mそれらを完全に削除して再読み込みしてみてください。

于 2013-08-20T11:56:03.103 に答える