我是手机编程的新手。任何人都可以告诉我这是什么意思下面的错误。我已经创建了自定义静态通用库并导入了项目和其他链接器标志我添加了-ObjC.Its正常工作。之后,我添加了一个库文件,在添加该文件后给出了客户端,如果运行项目显示下面的错误。我在谷歌搜索了我没有得到任何解决这个问题。所以请告诉我如何解决这个问题。
Ld /Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Products/Debug-iphonesimulator/EsloverAlipay.app/EsloverAlipay normal i386
cd /Users/racitsolutionspvtltd/Desktop/EsloverAlipay
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export 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 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Products/Debug-iphonesimulator -L/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay -L/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay -F/Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Products/Debug-iphonesimulator -filelist /Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Intermediates/EsloverAlipay.build/Debug-iphonesimulator/EsloverAlipay.build/Objects-normal/i386/EsloverAlipay.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework CFNetwork -framework SystemConfiguration -lssl -lEsloverloginsdkalipay -framework CoreGraphics -framework UIKit /Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a /Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a /Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlipayRsaLib.a -framework Foundation -lcrypto -Xlinker -dependency_info -Xlinker /Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Intermediates/EsloverAlipay.build/Debug-iphonesimulator/EsloverAlipay.build/Objects-normal/i386/EsloverAlipay_dependency_info.dat -o /Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Products/Debug-iphonesimulator/EsloverAlipay.app/EsloverAlipay
duplicate symbol _OBJC_IVAR_$_AlixPaylib._target in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(AlixPaylib.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(AlixPaylib.o)
duplicate symbol _OBJC_IVAR_$_AlixPaylib._seletor in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(AlixPaylib.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(AlixPaylib.o)
duplicate symbol _OBJC_IVAR_$_AlixPaylib._installType in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(AlixPaylib.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(AlixPaylib.o)
duplicate symbol _OBJC_IVAR_$_AlixPaylib._serverUrl in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(AlixPaylib.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(AlixPaylib.o)
duplicate symbol _k_DefaultModel in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(ALPToastView.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(ALPToastView.o)
duplicate symbol _OBJC_METACLASS_$_ALPToastView in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(ALPToastView.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(ALPToastView.o)
duplicate symbol _OBJC_IVAR_$_Alipay_Reachability.reachabilityRef in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(Reachability.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(Reachability.o)
duplicate symbol _OBJC_IVAR_$_Alipay_Reachability.localWiFiRef in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(Reachability.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(Reachability.o)
duplicate symbol _OBJC_CLASS_$_Alipay_Reachability in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(Reachability.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(Reachability.o)
duplicate symbol _OBJC_METACLASS_$_Alipay_Reachability in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(Reachability.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(Reachability.o)
ld: 116 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:1)
好像你正在导入相同的(虚拟)库 - 一个ARC,一个NON ARC。删除其中一个