2011-12-06 151 views
10

Error screenshot 無法理解如何修復它以及它爲什麼會出現?Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失敗,退出代碼爲1

Ld /Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Products/Debug-iphonesimulator/Flylista.app/Flylista normal i386 
    cd "/Users/atencion/Documents/Applications Development/Xcode Projects/Flylista" 
    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/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Products/Debug-iphonesimulator -F/Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Products/Debug-iphonesimulator -filelist /Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Intermediates/Flylista.build/Debug-iphonesimulator/Flylista.build/Objects-normal/i386/Flylista.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Products/Debug-iphonesimulator/Flylista.app/Flylista 

ld: duplicate symbol _OBJC_CLASS_$_FlightsViewController in /Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Intermediates/Flylista.build/Debug-iphonesimulator/Flylista.build/Objects-normal/i386/FlightViewController.o and /Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Intermediates/Flylista.build/Debug-iphonesimulator/Flylista.build/Objects-normal/i386/FlightsViewController.o for architecture i386 
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1 
+1

您是否嘗試清理整個項目? – tamasgal

+0

是的,也刪除了派生數據。 – Shmidt

回答

24

實際的錯誤是在你面前。看起來您的鏈接階段由於重複的符號而失敗:FlightsViewController。你可能已經定義了兩次,或者你已經將它鏈接到一個庫以及你的主版本中。

+0

的確如此)謝謝 – Shmidt

+0

你如何解決它? – shim

+0

@shim:通過不具有相同符號的多個定義來修復它。 –

1

當您複製/複製課程時,也可能會發生這種情況。確保你沒有在,可能在其他地方定義您的複製類等定義的任何常量

0

這裏是解決

當你在iOS應用程序的工作說,iPhone或iPad,但你已經選擇了錯誤

「我的Mac 64位」,你會得到這個錯誤enter image description here

所以選擇合適的應用類型說

iPhone的Retina(3.5英寸) 設備 iPhone的Retina(4英寸) iPhone的Retina 64位

iPad的iPad的 視網膜

等,那麼你就不會得到這個錯誤。

相關問題