Facebook-ios-sdk: Undefined symbols for architecture arm64

Created on 15 Nov 2019  路  6Comments  路  Source: facebook/facebook-ios-sdk

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Xcode Version: 11.2.1
  • Swift Version: 5.1 (if issue is Swift related)
  • Installation Platform & Verison: Swift Package Manager

Goals

Make a build or an archive with Release configuration

Expected Results

Build is successful

Actual Results

Undefined symbols for architecture arm64
> Symbol: _vDSP_dotpr
> Referenced from: mat1::conv1D(float*, float*, int, int, int, int, int) in FBSDKCoreKit.o

Steps to Reproduce

Start to build with Release configuration

P.S. Important notes: Debug configuration works well
The issue reproduced on 5.11.0 version, 5.10.0 works fine

Most helpful comment

Hi,

I have also same issue. SPM + facebook SDK 5.11.0.
I found that the "vDSP_dotpr" is used in https://github.com/facebook/facebook-ios-sdk/commit/b99bfffa57d503365910688511b0005b338ad732.
"vDSP_dotpr" is in Apple's Accelerate.framework, so I add this framework to project's framework and I can build successfully.
I hope to add this framework dependency to Package.swift or revert https://github.com/facebook/facebook-ios-sdk/commit/b99bfffa57d503365910688511b0005b338ad732.

Apple's Documentation.
https://developer.apple.com/documentation/accelerate/1450313-vdsp_dotpr?language=occ

Thanks,

All 6 comments

I have exactly same issue (same configuration as AlexIzh, same error). SPM + facebook SDK 5.11.0 crashes (5.10.1 works). I see 5.11.0 doesn't even build on Travis CI (https://travis-ci.org/facebook/facebook-ios-sdk/jobs/612257375). Why there is a new release without successful CI build?

Hi,

I have also same issue. SPM + facebook SDK 5.11.0.
I found that the "vDSP_dotpr" is used in https://github.com/facebook/facebook-ios-sdk/commit/b99bfffa57d503365910688511b0005b338ad732.
"vDSP_dotpr" is in Apple's Accelerate.framework, so I add this framework to project's framework and I can build successfully.
I hope to add this framework dependency to Package.swift or revert https://github.com/facebook/facebook-ios-sdk/commit/b99bfffa57d503365910688511b0005b338ad732.

Apple's Documentation.
https://developer.apple.com/documentation/accelerate/1450313-vdsp_dotpr?language=occ

Thanks,

@usk2000 is correct. We needed to link Accelerate framework as part of the Package manifest. This will be in patch release 5.11.1

Hi,

I have also same issue. SPM + facebook SDK 5.11.0.
I found that the "vDSP_dotpr" is used in b99bfff.
"vDSP_dotpr" is in Apple's Accelerate.framework, so I add this framework to project's framework and I can build successfully.
I hope to add this framework dependency to Package.swift or revert b99bfff.

Apple's Documentation.
https://developer.apple.com/documentation/accelerate/1450313-vdsp_dotpr?language=occ

Thanks,

Yes, I got the same issue when I updated to version 5.11.1. But by adding accelerate.framework to the framework section build got worked without error.

Thanks to @Usk2000.

The same issue on 5.11.1, I had to add Accelerate.framework to the facebook SDK target.

I finally solved the problem!
Along with the FBSDK frameworks you have to add "Accelerator.framework" from

Build Phases > Link Binary With Libraries > "+"
And search the "Accelerator.framework" and add.

Was this page helpful?
0 / 5 - 0 ratings