2012-09-18 112 views
-5

嘿傢伙我試圖建立我的應用程序,但它不只是在鏈接時停住了?這裏奇怪的錯誤是日誌使用xcode鏈接錯誤

Ld的/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Products/Debug-iphonesimulator/SearchPRO.app/SearchPRO正常的i386 CD /用戶/ alyjamy/Downloads/SearchPRO setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH「/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/ bin:/ usr/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/alyjam y/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Products/Debug-iphonesimulator -F/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Products/Debug-iphonesimulator -filelist/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/SearchPRO.LinkFileList -mmacosx-version-min = 10.6 - Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED = 50100 -lxml2 -lz -framework MobileCoreServices -framework SystemConfiguration -framework CoreGraphics -framework CFNetwork -framework UIKit -framework Foundation -o/Users/alyjamy/Library /Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Products/Debug-iphonesimulator/SearchPRO.app/SearchPRO

重複的符號_OBJC_IVAR _ $ _ Google_SearchView.refParentViewController在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386 /Google_SearchView-F440D65BB38D9558.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Google_SearchView-41A2B8A23D2A1652。 Ø 重複的符號_OBJC_CLASS _ $ _ Google_SearchView在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Google_SearchView -F440D65BB38D9558.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Google_SearchView-41A2B8A23D2A1652.o 重複的符號_OBJC_METACLASS _ $ _ Google_SearchView在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Google_SearchView-F440D65BB38D9558.o /用戶/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Google_SearchView-41A2B8A23D2A1652.o 重複的符號_OBJC_IVAR _ $ _ HomeView.refParentViewController in: /Users/alyjamy/Library/Developer/Xcode/DerivedDa ta/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/HomeView-5DC4F3DA47F5C55B.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp /Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/HomeView-B126BFA53128822A.o 重複的符號_OBJC_CLASS _ $ _ HomeView: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp /建造/中間體/ SearchPRO.build /調試-iphonesimulator/SearchPRO.build /對象 - 正常/ I386/HomeView-5DC4F3DA47F5C55B。Ø /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/HomeView-B126BFA53128822A.o 重複的符號_OBJC_METACLASS_ $ _HomeView在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/HomeView-5DC4F3DA47F5C55B.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/HomeView-B126BFA53128822A.o 重複的符號_main in: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/B uild/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/main-90B20DF7C3920B56.o 重複的符號_OBJC_IVAR _ $ _ iSearchProAppDelegate.navigationController在: /Users/alyjamy/Library/Developer/Xcode/DerivedData /SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/iSearchProAppDelegate-FC941BF9786A1D61.o /用戶/ alyjamy /庫/開發商/ Xcode中/ DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/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-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug -iphonesimulator/SearchPRO.build/Objects-normal/i386/iSearchProAppDelegate-FC941BF9786A1D61.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO。建立/目標正常/ I386/iSearchProAppDelegate-5039F6A504D7A3A.o 重複的符號_OBJC_CLASS _ $ _ iSearchProAppDelegate在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator /SearchPRO.build/Objects-normal/i386/iSearchProAppDelegate-FC941BF9786A1D61.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/ Objects-normal/i386/iSearchProAppDelegate-5039F6A504D7A3A.o duplicate sym BOL _OBJC_METACLASS _ $ _ iSearchProAppDelegate在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/iSearchProAppDelegate-FC941BF9786A1D61。 Ø /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/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-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Twitter_SearchView-3920747535A2AD6A。 o /Users/alyjamy/Library/Developer/Xcode/D erivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp /編譯/中間體/ SearchPRO.build /調試-iphonesimulator/SearchPRO.build /目標正常/ I386/Twitter_SearchView-F6065DBEB33D9A3C.o 重複的符號_OBJC_CLASS _ $ _ Twitter_SearchView在: /用戶/ alyjamy /庫/開發人員/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Twitter_SearchView-3920747535A2AD6A.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp /生成/中間體/ SearchPRO.build /調試-iphonesimulator/SearchPRO.build /對象 - 正常/ I386/Twitter_SearchView-F6065DBEB33D9A3C。Ø 重複的符號_OBJC_METACLASS _ $ _ Twitter_SearchView在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Twitter_SearchView -3920747535A2AD6A.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Twitter_SearchView-F6065DBEB33D9A3C.o 重複的符號_OBJC_CLASS _ $ _ Twitter_SearchViewController在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Twitter_SearchViewController-2A2332C99892CD6C .o /使用rs/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Twitter_SearchViewController-E7091C13162DBA3E.o 重複符號_OBJC_METACLASS _ $ _ Twitter_SearchViewController in : /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Twitter_SearchViewController-2A2332C99892CD6C.o /用戶/ alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Twitter_SearchViewController-E7091C13162DBA3E.o 重複符號_OBJC_IVAR _ $ _ Youtube_SearchView.refParentViewController in : /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Youtube_SearchView-1B25F11DFB82ED6E.o /Users/alyjamy /圖書館/開發商/ Xcode中/ DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp /編譯/中間體/ SearchPRO.build /調試-iphonesimulator/SearchPRO.build /目標正常/ I386/Youtube_SearchView-FE4CD6F8B0DC7B2A.o 重複的符號_OBJC_CLASS _ $ _ Youtube_SearchView在: /用戶/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Youtube_SearchView-1B25F11DFB82ED6E.o /Users/alyjamy/Library /開發商/ Xcode中/ DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp /編譯/中間體/ SearchPRO.build /調試-iphonesimulator/S earchPRO.build/Objects-normal/i386/Youtube_SearchView-FE4CD6F8B0DC7B2A.o 重複的符號_OBJC_METACLASS _ $ _ Youtube_SearchView在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug -iphonesimulator/SearchPRO.build/Objects-normal/i386/Youtube_SearchView-1B25F11DFB82ED6E.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO。建立/目標正常/ I386/Youtube_SearchView-FE4CD6F8B0DC7B2A.o 重複的符號_OBJC_CLASS _ $ _ Youtube_SearchViewController在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator /SearchPRO.build/Objects-normal/i386/Youtube_Search ViewController-3269AC039631AE5A.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Youtube_SearchViewController-EF4F954D13CC9B2C.o 重複的符號_OBJC_METACLASS _ $ _ Youtube_SearchViewController在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Youtube_SearchViewController- 3269AC039631AE5A.o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Youtube_SearchViewController-EF4F954D13CC9B2C。Ø LD:爲i386硬件架構21個重複的符號 鐺:錯誤:連接命令,退出代碼1失敗(使用-v看到調用)

你可以幫我

解決了這個錯誤時我刪除重複的,現在我把它

Ld的/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Products/Debug-iphonesimulator/SearchPRO.app/SearchPRO正常的i386 CD /用戶/ alyjamy/Downloads/SearchPRO setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH「/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin :/ bin:/ usr/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-byuygadvkgrdzqgiethjtvoscvzp/Build/Products/Debug-iphonesimulator -F/Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Products/Debug-iphonesimulator -filelist /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator /SearchPRO.build/O bjects-normal/i386/SearchPRO.LinkFileList -Xlinker -no-demangle -mmacosx-version-min = 10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED = 50100 -lxml2 -lz-框架MobileCoreServices框架SystemConfiguration框架CoreGraphics框架CFNetwork框架UIKit框架基礎-o /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Products/Debug-iphonesimulator/SearchPRO.app/SearchPRO

重複的符號_main在: /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/main- AC1E3FF737776656.o ld:1個架構重複符號i386 clang:error:連接器命令失敗,退出代碼1(使用-v查看調用)

??

+0

你能發佈你的代碼嗎?發生錯誤的地方 – Fustigador

+0

只需粘貼錯誤代碼..... – IronManGill

回答

3

您的Youtube_SearchViewController.m和其他Youtube_SearchView.m文件在您的「編譯源」構建階段中列出兩次。

在左側的Project Navigator中選擇您的項目,然後在目標列表中選擇您的目標,轉到「構建階段」選項卡,並刪除每個重複的文件(以便每個.m文件僅列出一次)。如何解釋生成日誌


詳細(加着重號並重新格式化)

duplicate symbol _OBJC_IVAR_$_Google_SearchView.refParentViewController in:

  • /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Google_SearchView-F440D65BB38D9558.o
  • /Users/alyjamy/Library/Developer/Xcode/DerivedData/SearchPRO-byuygadvkgrdzqgiethjtvoscvzp/Build/Intermediates/SearchPRO.build/Debug-iphonesimulator/SearchPRO.build/Objects-normal/i386/Google_SearchView-41A2B8A23D2A1652.o

在上面的提取物中,Google_searchView.m編譯兩次,同時生產Google_SearchView-F440D65BB38D9558.oGoogle_SearchView-41A2B8A23D2A1652.o

+0

現在刪除它們很酷現在有其他錯誤要編輯主題現在 – iMokhles

+0

你仍然有main()函數重複,可能是'main。m'文件仍然存在兩次(或代碼中的兩個不同位置定義的'main()'函數) – AliSoftware

+0

是啊很棒mmmm謝謝,我解決了之後我遇到了我要寫的以上 – iMokhles