Iphone 使用xcode链接错误

Iphone 使用xcode链接错误,iphone,xcode,linker,Iphone,Xcode,Linker,嘿,伙计们,我正在尝试构建我的应用程序,但链接时它并没有停止?奇怪的错误,这是日志 Ld/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethtvoscvzp/Build/Products/Debug iphonesimulator/SearchPRO.app/SearchPRO normal i386 cd/Users/alyjamy/Downloads/SearchPRO setenv

嘿,伙计们,我正在尝试构建我的应用程序,但链接时它并没有停止?奇怪的错误,这是日志

Ld/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethtvoscvzp/Build/Products/Debug iphonesimulator/SearchPRO.app/SearchPRO normal i386 cd/Users/alyjamy/Downloads/SearchPRO setenv MACOSX_部署_目标10.6 setenv PATH/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/sbin:/sbin /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-arch i386-dynamiclib-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk-L/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethtvoscvzp/Build/Products/Debug iphonesimulator-F/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Products/Debug iphonesimulator-filelist/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug-iphonesimulator/SearchPRO.Build/Objects-normal/i386/SearchPRO.LinkFileList-mmacosx-version min=10.6-Xlinker-objc\u abi\u version-Xlinker 2-fobjc-link-runtime-Xlinker-Xlinker-no\u-dylibs- Dy-iPieleSoSyVeluoSnMyRead=50100 -LXML2-LZ-框架移动服务——框架系统配置-框架核心图-框架CFNET-框架UIKIT-框架基础-O/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Products/Debug iphonesimulator/SearchPRO.app/SearchPRO

重复符号\u OBJC\u IVAR\u$\u Google\u SearchView.refParentViewController位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Google\u SearchView-F440D65BB38D9558.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Google_SearchView-41A2B8A23D2A1652.o 重复符号_OBJC_CLASS_$_谷歌搜索视图,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Google\u SearchView-F440D65BB38D9558.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Google_SearchView-41A2B8A23D2A1652.o 重复符号_OBJC_元类$_谷歌搜索视图,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Google\u SearchView-F440D65BB38D9558.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Google_SearchView-41A2B8A23D2A1652.o 重复符号_OBJC_IVAR_$_HomeView.refParentViewController位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/HomeView-5dc4f3da47f5c5b.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/HomeView-B126BFA53128822A.o 在以下位置复制符号_OBJC_CLASS_$\u HomeView: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/HomeView-5dc4f3da47f5c5b.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/HomeView-B126BFA53128822A.o 在以下位置复制符号_OBJC_元类$\u HomeView: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/HomeView-5dc4f3da47f5c5b.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/HomeView-B126BFA53128822A.o 重复符号_mainin: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug-iphonesimulator/SearchPRO.Build/Objects-normal/i386/main-90B20DF7C3920B5 6.o 重复符号_OBJC_IVAR_$_iSearchProAppDelegate.navigationController位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-by-uiguadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug-iphonesimulator/SearchPRO.Build/Objects-normal/i386/iSearchProAppDelegate-FC941BF9786A1D61.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/iSearchProAppDelegate-5039F6A504D7A3A.o 重复符号_OBJC_IVAR_$_iSearchProAppDelegate.window,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-by-uiguadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug-iphonesimulator/SearchPRO.Build/Objects-normal/i386/iSearchProAppDelegate-FC941BF9786A1D61.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/iSearchProAppDelegate-5039F6A504D7A3A.o 重复符号_OBJC_CLASS_$_iSearchProAppDelegate位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-by-uiguadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug-iphonesimulator/SearchPRO.Build/Objects-normal/i386/iSearchProAppDelegate-FC941BF9786A1D61.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/iSearchProAppDelegate-5039F6A504D7A3A.o 重复符号_OBJC_元类$_iSearchProAppDelegate位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-by-uiguadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug-iphonesimulator/SearchPRO.Build/Objects-normal/i386/iSearchProAppDelegate-FC941BF9786A1D61.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/iSearchProAppDelegate-5039F6A504D7A3A.o 重复符号_OBJC_IVAR_$_Twitter_SearchView.refParentViewController,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Twitter\u SearchView-392074535a2ad6a.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Twitter\u SearchView-f6065db33d9a3c.o 重复符号_OBJC_CLASS_$_Twitter_搜索视图,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Twitter\u SearchView-392074535a2ad6a.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Twitter\u SearchView-f6065db33d9a3c.o 重复符号_OBJC_元类$_Twitter_搜索视图,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Twitter\u SearchView-392074535a2ad6a.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Twitter\u SearchView-f6065db33d9a3c.o 重复符号_OBJC_CLASS_$_Twitter_SearchViewController,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Twitter\u SearchViewController-2a22332c99892cd6c.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Twitter\u SearchViewController-e7091c3162dba3e.o 重复符号_OBJC_元类$_Twitter_SearchViewController,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Twitter\u SearchViewController-2a22332c99892cd6c.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Twitter\u SearchViewController-e7091c3162dba3e.o 重复符号_OBJC_IVAR_$_Youtube_SearchView.refParentViewController,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug-iphonesimulator/SearchPRO.Build/Objects-normal/i386/Youtube_SearchView-1B25F 11DFB82ED6E.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Youtube_SearchView-FE4CD6F8B0DC7B2A.o 重复符号_OBJC_CLASS_$_Youtube_搜索视图,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Youtube_SearchView-1B25F11DFB82ED6E.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Youtube_SearchView-FE4CD6F8B0DC7B2A.o 重复符号_OBJC_元类$_Youtube_搜索视图,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Youtube_SearchView-1B25F11DFB82ED6E.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Youtube_SearchView-FE4CD6F8B0DC7B2A.o 重复符号_OBJC_CLASS_$\u Youtube\u SearchViewController,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Youtube\u SearchViewController-3269AC039631AE5A.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Youtube\u SearchViewController-EF4F954D13CC9B2C.o 重复符号_OBJC_元类$_Youtube_SearchViewController,位于: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Youtube\u SearchViewController-3269AC039631AE5A.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Youtube\u SearchViewController-EF4F954D13CC9B2C.o ld:21个重复符号用于架构i386 clang:错误:链接器命令失败,退出代码为1使用-v查看调用

你能帮我做点什么吗

当我删除副本时解决了这个错误现在我有了它

Ld/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethtvoscvzp/Build/Products/Debug iphonesimulator/SearchPRO.app/SearchPRO normal i386 cd/Users/alyjamy/Downloads/SearchPRO setenv MACOSX_部署_目标10.6 setenv PATH/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/sbin:/sbin /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-arch i386-dynamiclib-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk-L/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethtvoscvzp/Build/Products/Debug iphonesimulator-F/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Products/Debug iphonesimulator-filelist/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO byuigadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug-iphonesimulator/SearchPRO.Build/Objects-normal/i386/SearchPRO.LinkFileList-Xlinker-no demangle-mmacox-version=10.6-Xlinker-objc\u abi\u version-Xlinker-Xlinker-2-fobjc-link-no\u-dylibs- Dy-iPieleSoSyVeluoSnMyRead=50100 -LXML2-LZ-框架移动服务——框架系统配置-框架核心图-框架CFNET-框架UIKIT-框架基础-O/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Products/Debug iphonesimulator/SearchPRO.app/SearchPRO

重复符号_mainin: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO BYUIAdvkgrdzqgiethjtVOSCvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/main-AC1E3FF737776656.o ld:架构i386的1个重复符号 clang:错误:链接器命令失败,退出代码为1使用-v查看调用

在编译源代码构建阶段,您的Youtube\u SearchViewController.m和其他Youtube\u SearchView.m文件将列出两次

在左侧的项目导航器中选择您的项目,然后在目标列表中选择您的目标,转到“构建阶段”选项卡,删除每个重复文件,以便每个.m文件只列出一次

有关如何解释构建日志的详细信息 d和重新格式化:

重复符号\u OBJC\u IVAR\u$\u Google\u SearchView.refParentViewController位于:

/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Google\u SearchView-F440D65BB38D9558.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO by维雅维advkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.Build/Debug iphonesimulator/SearchPRO.Build/Objects normal/i386/Google_SearchView-41A2B8A23D2A1652.o
在上面的摘录中,Google_searchView.m被编译了两次,生成了Google_searchView-F440D65BB38D9558.o和Google_searchView-41A2B8A23D2A1652.o

你能发布你的代码吗?发生错误的地方只是粘贴错误代码…..删除它们很酷现在有其他错误要编辑主题现在你仍然有重复的主函数,可能main.m文件仍然存在两次,或者在代码中两个不同的地方定义的主函数可能是非常感谢,在我解决它之后,我面临着我将要写的东西,那么也许你可以投票/接受我给你的解决方案?!