架构i386的8个重复符号

时间:2015-02-20 12:21:38

标签: ios

我的应用程序工作正常,但经过一些修改后我得到了以下错误,请帮助我......

           duplicate symbol _OBJC_IVAR_$_MBThirdViewController.nameLabel1 in:
           /Users/major/Library/Developer/Xcode/DerivedData/sideMenu- bslwsbjqbjtkojeslptbkyhajajv/Build/Intermediates/sideMenu.build/Debug-         iphonesimulator/sideMenu.build/Objects-normal/i386/MBThirdViewController- D5D149C1AA17C975.o
           duplicate symbol _OBJC_IVAR_$_MBThirdViewController.phoneLabel1 in:
           /Users/major/Library/Developer/Xcode/DerivedData/sideMenu-bslwsbjqbjtkojeslptbkyhajajv/Build/Intermediates/sideMenu.build/Debug- iphonesimulator/sideMenu.build/Objects-normal/i386/MBThirdViewController-D5D149C1AA17C975.o
            duplicate symbol _OBJC_IVAR_$_MBThirdViewController.emailLabel1 in:
          /Users/major/Library/Developer/Xcode/DerivedData/sideMenu-bslwsbjqbjtkojeslptbkyhajajv/Build/Intermediates/sideMenu.build/Debug-iphonesimulator/sideMenu.build/Objects-normal/i386/MBThirdViewController-D5D149C1AA17C975.o
            duplicate symbol _OBJC_IVAR_$_MBThirdViewController.photoView1 in:
            /Users/major/Library/Developer/Xcode/DerivedData/sideMenu- bslwsbjqbjtkojeslptbkyhajajv/Build/Intermediates/sideMenu.build/Debug- iphonesimulator/sideMenu.build/Objects-normal/i386/MBThirdViewController- D5D149C1AA17C975.o
             duplicate symbol _OBJC_IVAR_$_MBThirdViewController.imageVC in:
             /Users/major/Library/Developer/Xcode/DerivedData/sideMenu- bslwsbjqbjtkojeslptbkyhajajv/Build/Intermediates/sideMenu.build/Debug- iphonesimulator/sideMenu.build/Objects-normal/i386/MBThirdViewController- D5D149C1AA17C975.o
             duplicate symbol _OBJC_IVAR_$_MBThirdViewController.dataObject in:
            /Users/major/Library/Developer/Xcode/DerivedData/sideMenu-bslwsbjqbjtkojeslptbkyhajajv/Build/Intermediates/sideMenu.build/Debug-iphonesimulator/sideMenu.build/Objects-normal/i386/MBThirdViewController-D5D149C1AA17C975.o

重复符号_OBJC_CLASS _ $ _ MBThirdViewController in:           /Users/major/Library/Developer/Xcode/DerivedData/sideMenu-bslwsbjqbjtkojeslptbkyhajajv/Build/Intermediates/sideMenu.build/Debug- iphonesimulator / sideMenu.build / Objects-normal / i386 / MBThirdViewController- D5D149C1AA17C975.o              重复符号_OBJC_METACLASS _ $ _ MBThirdViewController in:               / Users / major / Library / Developer / Xcode / DerivedData / sideMenu-bslwsbjqbjtkojeslptbkyhajajv / Build / Intermediates / sideMenu.build / Debug- iphonesimulator / sideMenu.build / Objects-normal / i386 / MBThirdViewController-D5D149C1AA17C975.o               ld:架构i386的8个重复符号              clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

3 个答案:

答案 0 :(得分:4)

转到“构建设置”并搜索“无公共块”并将其设置为“否”。再次构建,你不会再犯这个错误。

答案 1 :(得分:1)

确保在项目中未添加两次ViewController。 要么 你已多次声明同一个变量。

  

还有Xcode-> Window-> Organizer-> Projects

     

删除派生数据

希望这可能会有所帮助。

答案 2 :(得分:0)

检查项目中是否添加了两次MBThirdViewController。

OR

删除对它的引用,然后尝试将其再次添加到项目中。