iOS 编译之"_vDSP_mmul"、"_vDSP_dotpr"、"_vDSP_vclip"

更新FBSDK的时候,编译出现如下提示:

ld: warning: Could not find or use auto-linked framework 'WatchKit'
Undefined symbols for architecture x86_64:
  "_vDSP_mmul", referenced from:
      mat1::dense(float*, float*, float*, int, int, int) in FBSDKCoreKit(FBSDKEventInferencer.o)
      mat1::dense(float*, float*, float*, int, int, int) in FBSDKCoreKit(FBSDKAddressInferencer.o)
  "_vDSP_dotpr", referenced from:
      mat1::conv1D(float*, float*, int, int, int, int, int) in FBSDKCoreKit(FBSDKEventInferencer.o)
      mat1::conv1D(float*, float*, int, int, int, int, int) in FBSDKCoreKit(FBSDKAddressInferencer.o)
  "_vDSP_vclip", referenced from:
      +[FBSDKEventInferencer predict:viewTree:withLog:] in FBSDKCoreKit(FBSDKEventInferencer.o)
      +[FBSDKAddressInferencer shouldFilterParam:] in FBSDKCoreKit(FBSDKAddressInferencer.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

截图如下:


Snip20200302_6.png

解决办法:
添加系统库:Accelerate.framework即可解决问题。
以上~

你可能感兴趣的:(iOS 编译之"_vDSP_mmul"、"_vDSP_dotpr"、"_vDSP_vclip")