Clang错误:exitcode 1失败(使用-v查看调用)

时间:2012-10-31 05:12:52

标签: objective-c ios xcode

我正在尝试使用带有SUP后端的目标c在xcode中开发一个应用程序。当我构建我的项目时,我得到了一个错误,如

  

Ld /Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjmpmpxtxtw/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中:/ 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-brpimxjxwxsuimcjcfjjmpmpxtxtw / 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 / imports_Libraries / Libraries / Debug-iphonesimulator -L / Users / chairman / Desktop / New_App / New_App /../../ MAC_IOS / imports_Libraries / Libraries / Release-iphoneos -L / Users / chairman / Desktop / New_App / New_App /../../ MAC_IOS / imported_Libraries / Libraries / Release-iphonesimulator - L / Users / Chairman / Desktop / New_App / New_App /../../ New_App_Data / imports_Libraries / Libraries / Debug-iphonesimulator -F / Users / chairman / Library / Developer / Xcode / DerivedData / New_App-brpimxjxwxsuimcjcfjjrmpne xtw / Build / Products / Debug-iphonesimulator -filelist /Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjmpmpxtxtw/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 - 框架AddressBook -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjmpmpxtxtw/Build/Products/Debug-iphonesimulator/New_App.app/New_App

     

ld:/Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjmpmpnextw/Build/Intermediates/New_App.build/Debug-iphonesimulator/New_App.build/Objects-normal/中的重复符号_OBJC_IVAR _ $ _ dev_BhaskarG_com_igate_shipping_v1KeyGenerator._remoteId i386 / dev_BhaskarG_com_igate_shipping_v1KeyGenerator.o和/Users/chairman/Library/Developer/Xcode/DerivedData/New_App-brpimxjxwxsuimcjcfjjmpmpxtxtw/Build/Intermediates/New_App.build/Debug-iphonesimulator/New_App.build/Objects-normal/i386/dev_BhaskarG_com_igate_shipping_v1KeyGenerator copy.o for建筑i386   clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

有谁可以帮我解决这个问题?

1 个答案:

答案 0 :(得分:0)

重复符号表示您在项目中的两个位置(或其包含的库)中定义了相同的符号(类,变量等)。

查看错误消息......看起来您已在项目中包含了两次相同的文件:

dev_BhaskarG_com_igate_shipping_v1KeyGenerator dev_BhaskarG_com_igate_shipping_v1KeyGenerator copy