2012-10-31 78 views
0

我試圖開發使用目標C與SUP backend.When我建造項目中,我得到了一個錯誤,如鏘錯誤:失敗,退出碼1(使用-v看看調用)

Ld /Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjrmpnextw/Build/Products/Debug-iphonesimulator/New_App.app/New_App normal i386 cd /Users/chairman/Desktop/New_App/New_App setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Users/chairman/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Users/chairman/Desktop/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Users/chairman/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Users/chairman/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjrmpnextw/Build/Products/Debug-iphonesimulator -L/Users/chairman/Desktop/New_App/New_App/../../MAC_IOS/importing_Libraries/Libraries/Debug-iphoneos -L/Users/chairman/Desktop/New_App/New_App/../../MAC_IOS/importing_Libraries/Libraries/Debug-iphonesimulator -L/Users/chairman/Desktop/New_App/New_App/../../MAC_IOS/importing_Libraries/Libraries/Release-iphoneos -L/Users/chairman/Desktop/New_App/New_App/../../MAC_IOS/importing_Libraries/Libraries/Release-iphonesimulator -L/Users/chairman/Desktop/New_App/New_App/../../New_App_Data/importing_Libraries/Libraries/Debug-iphonesimulator -F/Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjrmpnextw/Build/Products/Debug-iphonesimulator -filelist /Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjrmpnextw/Build/Intermediates/New_App.build/Debug-iphonesimulator/New_App.build/Objects-normal/i386/New_App.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -lstdc++.6 -lz.1.2.5 -licucore.A -framework Security -framework QuartzCore -framework CoreFoundation -framework AddressBook -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjrmpnextw/Build/Products/Debug-iphonesimulator/New_App.app/New_App

ld: duplicate symbol _OBJC_IVAR_$_dev_BhaskarG_com_igate_shipping_v1KeyGenerator._remoteId in /Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjrmpnextw/Build/Intermediates/New_App.build/Debug-iphonesimulator/New_App.build/Objects-normal/i386/dev_BhaskarG_com_igate_shipping_v1KeyGenerator.o and /Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjrmpnextw/Build/Intermediates/New_App.build/Debug-iphonesimulator/New_App.build/Objects-normal/i386/dev_BhaskarG_com_igate_shipping_v1KeyGenerator copy.o for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

在Xcode中的應用

任何人都可以請幫我解決這個問題嗎?

+0

不,不是,直到找到真正的* *錯誤信息。檢查構建日誌(Xcode左側窗格頂部的最後一個按鈕) – borrrden

+0

有兩個警告錯誤,如 1.Receiver'NSConnection'是前向類,並且相應的@interface可能不存在 2.class方法+ prepareStatement:找不到(返回類型默認爲id) ,錯誤類似於 重複的符號_OBJC_IVAR _ $ .....對於架構i386 – user1765037

+0

您不應該留下那樣的警告。但是,錯誤是相關問題,請使用錯誤消息編輯您的問題。 – borrrden

回答

0

重複符號意味着您在項目(或其包含的庫)的兩個地方定義了相同的符號(類,變量等)。

查看錯誤信息......它看起來就像你包含在你的項目中的同一個文件兩次:

dev_BhaskarG_com_igate_shipping_v1KeyGenerator dev_BhaskarG_com_igate_shipping_v1KeyGenerator複製

+0

我們得到了其他一些生成的代碼,我們試圖消除dev_BhaskarG_com_igate_shipping_v1KeyGenerator copy.h文件,那麼它顯示了許多錯誤像i386硬件架構未定義的符號: 「_OBJC_CLASS _ $ _ MBOLogger」從引用:在CallbackHandler.o _objc_class_ref _objc_class_ref in New_App.o _objc_class_ref in --Shipping_v1_subscription_status.o – user1765037

+0

這是一個不同的問題。你不能同時擁有這兩個文件。這是故事的結尾。 – borrrden

+0

k謝謝你......... – user1765037

相關問題