ld: 1 duplicate symbol for architecture armv7 Xcode 报错了 :

Ld /Users/zhubao/Library/Developer/Xcode/DerivedData/SaleTreasure-bbrrvvyybmkivkbnnrnqwfyjnfmh/Build/Products/Debug-iphoneos/SaleTreasure.app/SaleTreasure normal armv7

    cd /Volumes/Mac_HD500/pmb/paibao-ios

    export IPHONEOS_DEPLOYMENT_TARGET=6.1

    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/zhubao/Library/Developer/Xcode/DerivedData/SaleTreasure-bbrrvvyybmkivkbnnrnqwfyjnfmh/Build/Products/Debug-iphoneos -L/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/JPushSDK -L/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/UmengSDK/UMSocial_Sdk_Extra_Frameworks/UMSocial_Shake_Sdk -L/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/UmengSDK/UMSocial_Sdk_Extra_Frameworks/UMSocial_ScreenShot_Sdk -L/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/UmengSDK/UMSocial_Sdk_Extra_Frameworks/TencentWeibo -L/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/UmengSDK/UMSocial_Sdk_Extra_Frameworks/TencentOpenAPI -L/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/UmengSDK/UMSocial_Sdk_4.1 -L/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/UmengSDK/UMSocial_Sdk_Extra_Frameworks/Sina -L/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/UmengSDK/UMSocial_Sdk_Extra_Frameworks/Wechat -L/Users/wuhaoran/Documents/原始积累/支付/银联/2. -L开发包_前台_UPPayPluginEx-SND-2.1.4/upmp_iphone/demo/UPPayDemo/UPPayDemo -L/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/Uppay -L/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/UUPay -F/Users/zhubao/Library/Developer/Xcode/DerivedData/SaleTreasure-bbrrvvyybmkivkbnnrnqwfyjnfmh/Build/Products/Debug-iphoneos -F/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/UmengSDK/UMSocial_Sdk_Extra_Frameworks/TencentOpenAPI -filelist /Users/zhubao/Library/Developer/Xcode/DerivedData/SaleTreasure-bbrrvvyybmkivkbnnrnqwfyjnfmh/Build/Intermediates/SaleTreasure.build/Debug-iphoneos/SaleTreasure.build/Objects-normal/armv7/SaleTreasure.LinkFileList -dead_strip -fobjc-arc -fobjc-link-runtime -stdlib=libc++ -miphoneos-version-min=6.1 -framework MapKit -lz -lstdc++ -framework CoreTelephony -lsqlite3 -liconv -lSocialSina -lUPPayPlugin -framework StoreKit -lUMSocial_Sdk_Comment_4.1 -framework QuartzCore -framework CoreLocation -framework Security -lPushSDK -framework SystemConfiguration -lSocialWechat -framework MobileCoreServices -framework CoreGraphics -lUMSocial_Sdk_ScreenShot_1.0 -framework TencentOpenAPI -lUMSocial_Sdk_4.1 -lWeChatSDK -framework UIKit -lSocialQQ -lUPPayPluginPro -framework Foundation -lUMSocial_Sdk_Shake_1.0 -lSocialTencentWeibo -Xlinker -dependency_info -Xlinker /Users/zhubao/Library/Developer/Xcode/DerivedData/SaleTreasure-bbrrvvyybmkivkbnnrnqwfyjnfmh/Build/Intermediates/SaleTreasure.build/Debug-iphoneos/SaleTreasure.build/Objects-normal/armv7/SaleTreasure_dependency_info.dat -o /Users/zhubao/Library/Developer/Xcode/DerivedData/SaleTreasure-bbrrvvyybmkivkbnnrnqwfyjnfmh/Build/Products/Debug-iphoneos/Sale


ld: warning: directory not found for option '-L/Users/wuhaoran/Documents/原始积累/支付/银联/2.'

ld: warning: directory not found for option '-L开发包_前台_UPPayPluginEx-SND-2.1.4/upmp_iphone/demo/UPPayDemo/UPPayDemo'

ld: warning: directory not found for option '-L/Volumes/Mac_HD500/pmb/paibao-ios/SaleTreasure/lib/Uppay'

duplicate symbol _kDataAuctionId in:

    /Users/zhubao/Library/Developer/Xcode/DerivedData/SaleTreasure-bbrrvvyybmkivkbnnrnqwfyjnfmh/Build/Intermediates/SaleTreasure.build/Debug-iphoneos/SaleTreasure.build/Objects-normal/armv7/RaiseListModel.o

    /Users/zhubao/Library/Developer/Xcode/DerivedData/SaleTreasure-bbrrvvyybmkivkbnnrnqwfyjnfmh/Build/Intermediates/SaleTreasure.build/Debug-iphoneos/SaleTreasure.build/Objects-normal/armv7/SelesOrderModel.o

ld: 1 duplicate symbol for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)









报错解决方法:搜索后发现 两个.m 文件中 有 两个重复const 的变量 修改下就可以了




你可能感兴趣的:(iOS)