swift引用obc的sdk,出现如下错误,不知道咋回事?

2020-12-07 16:49发布

duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._maxNmsth' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._minNmsth' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_CLASS$_ACEFaceDetectConfig' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_METACLASS$_ACEFaceDetectConfig' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._occSize' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._useOriLiveScore' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._maxScale' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._minScale' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._trackingMode' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._lmkScoreThreshold' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._usePyramid' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._liveThreshold3' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._liveThreshold2' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
duplicate symbol 'OBJC_IVAR$_ACEFaceDetectConfig._liveThreshold1' in:
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceConfig.o)
/Users/duoenet/Documents/myapp/duoeceshi2/Lib/PaFaceCheckSdk.framework/PaFaceCheckSdk(ACEFaceDetectConfig.o)
ld: 14 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

标签:
2条回答
闹够了就滚
2楼-- · 2020-12-07 17:01

原来是我在other link flat里加了-all_load参数

查看更多
爷、活的狠高调
3楼-- · 2020-12-07 17:13

ACEFaceConfig.o这个文件重复了,删除重复的

查看更多
登录 后发表回答