swift引用obc的sdk,出现如下错误,不知道咋回事?
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)
回答
ACEFaceConfig.o这个文件重复了,删除重复的
以上是 swift引用obc的sdk,出现如下错误,不知道咋回事? 的全部内容, 来源链接: utcz.com/a/70651.html