Skip to main content
October 17, 2011
Question

Linking native iOS extension

  • October 17, 2011
  • 1 reply
  • 1440 views


Hi,
I’m working on an app with an iOS native extension that uses Accelerate.framework, and I'm stuck at the packaging phase, after successfully creating an .ane file

When I run the final packaging command (-target ipa-test), I get the following errors:
ld warning: unexpected srelocation type 9
ld warning: unexpected srelocation type 9
... (repeating several times)
Undefined symbols:
  "_vDSP_vsdiv", referenced from: ...
  "_vDSP_vsmul", referenced from: ...
  "_vDSP_sve", referenced from: ...
  "_vDSP_vflt16", referenced from: ...
  "_vDSP_create_fftsetup", referenced from: ...
  "_vDSP_ctoz", referenced from: ...
  "_vDSP_fft_zrip", referenced from: ...
  "_vDSP_vmul", referenced from: ...
  "_vDSP_zvmags", referenced from: ...
ld: symbol(s) not found
Compilation failed while executing : ld64

I guess this is because when I created the .a file in xcode, it couldn’t really link it statically to the Accelerate.framework.
I suppose I need to tell adt to link it somehow? Probably in the phase I’m creating the .ane file? Or maybe I should change my extension.xml file?

No idea. Couldn’t really find it...

Please advise.

This topic has been closed for replies.

1 reply

March 15, 2012

Use -platformsdk switch while packaging your IPA.