0
後,我嘗試建立我的應用程序和Xcode,這個錯誤出現:3 i386硬件架構複製的符號
duplicate symbol _OBJC_IVAR_$_StoreVars._Traguardo in:
/Users/Fede/Library/Developer/Xcode/DerivedData/ProvaTapChallenge-bqumsaqmowwbdfbzgzrrwlblxsgh/Build/Intermediates/ProvaTapChallenge.build/Debug-iphonesimulator/ProvaTapChallenge.build/Objects-normal/i386/ViewController.o
/Users/Fede/Library/Developer/Xcode/DerivedData/ProvaTapChallenge-bqumsaqmowwbdfbzgzrrwlblxsgh/Build/Intermediates/ProvaTapChallenge.build/Debug-iphonesimulator/ProvaTapChallenge.build/Objects-normal/i386/ViewControllerBase.o
duplicate symbol _OBJC_METACLASS_$_StoreVars in:
/Users/Fede/Library/Developer/Xcode/DerivedData/ProvaTapChallenge-bqumsaqmowwbdfbzgzrrwlblxsgh/Build/Intermediates/ProvaTapChallenge.build/Debug-iphonesimulator/ProvaTapChallenge.build/Objects-normal/i386/ViewController.o
/Users/Fede/Library/Developer/Xcode/DerivedData/ProvaTapChallenge-bqumsaqmowwbdfbzgzrrwlblxsgh/Build/Intermediates/ProvaTapChallenge.build/Debug-iphonesimulator/ProvaTapChallenge.build/Objects-normal/i386/ViewControllerBase.o
duplicate symbol _OBJC_CLASS_$_StoreVars in:
/Users/Fede/Library/Developer/Xcode/DerivedData/ProvaTapChallenge-bqumsaqmowwbdfbzgzrrwlblxsgh/Build/Intermediates/ProvaTapChallenge.build/Debug-iphonesimulator/ProvaTapChallenge.build/Objects-normal/i386/ViewController.o
/Users/Fede/Library/Developer/Xcode/DerivedData/ProvaTapChallenge-bqumsaqmowwbdfbzgzrrwlblxsgh/Build/Intermediates/ProvaTapChallenge.build/Debug-iphonesimulator/ProvaTapChallenge.build/Objects-normal/i386/ViewControllerBase.o
ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我怎麼能解決這個問題?請幫幫我!
這通常意味着你有多個StoreVars類,它不知道編譯針對哪一個可能發生這種情況。在Xcode的文件管理器下,在底部可以輸入一個文件名,執行此操作,它應該提供所有名爲StoreVars的文件,希望您能看到多個文件,並且可以刪除不需要的文件想。 – Firo 2013-03-02 00:27:59
感謝Joel,但它不起作用..只有一個名爲StoreVars的文件.. – Gens 2013-03-02 14:11:15