logo头像

小玉的技术博客

duplicate symbol _APContentTypesFromHTTPHeader...Debug-iphoneos/XXXXX.a(AlipaySDK) 报错

问题还原

xcode在编译工程时突然报如下错误

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
duplicate symbol _APContentTypesFromHTTPHeader in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _APMutableStringRemoveLastComma in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _APNetworkingErrorDomain in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _APNetworkingOperationFailingURLRequestErrorKey in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _APNetworkingOperationFailingURLResponseErrorKey in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _APSecuDecryptResponse in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _ASS_STORAGE_KEY_LOGSWITCH in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _ASS_STORAGE_KEY_STATICHASH in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _ASS_STORAGE_KEY_SUCCESS in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _ASS_STORAGE_KEY_TIME in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _ASS_STORAGE_KEY_TOKEN in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _ASS_STORAGE_KEY_VKEYSWITCH in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _DTRpcCreateError in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _DTRpcCreateErrorWithCause in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _LAST_LOGIN_TIME_KEY in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _LOG_JB_ERROR_DETECTED in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _OBJC_CLASS_$_APJSONRequestOperation in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _OBJC_CLASS_$_APayAuthInfo in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _OBJC_CLASS_$_ASSApplistModel in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _OBJC_CLASS_$_ASSCommon in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
duplicate symbol _x509parse_pubkey in:
/Users/ZLY/Library/Developer/Xcode/DerivedData/Pay-emqjldfnrpthwshflaiujufkqrle/Build/Products/Debug-iphoneos/XXXXX.a(AlipaySDK)
ld: 608 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方案

在File >Workspace Settings 里build system 将New Build System(Default)切换成Legacy build system。

支付宝打赏 微信打赏

赞赏是不耍流氓的鼓励