架构i386的3个重复符号

时间:2013-03-02 00:19:58

标签: objective-c xcode

尝试使用Xcode构建我的应用程序后,会出现此错误:

     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)

我该如何解决这个问题?请帮助我!

1 个答案:

答案 0 :(得分:1)

如果您意外导入了StoreVars.m文件而不是StoreVars.h,则会发生这种情况