IOS dylib entry points

218 views Asked by At

We are experimenting with Dart ffi (foreign function interface) and are looking to directly call into the IOS AVFoundation dylib from dart.

To use ffi we need to dynamically load the AVFoundation dylib.

These leads to several questions.

  1. how do we find the path of the AVFoundation dylib?
  2. how do we get/find a list of entry points into the dylib?
  3. do we load the dylib directly or do we need to load it via a framework?
  4. we are likely to need to load other dylibs (for core features) so ideally we need a generic method of identifying the path to the dylib and its set of entry points.

Will we have any trouble shipping an app that uses dynamically loaded dylibs? I come across something (which I've now lost) that seems to be suggesting that the app store may not allow an app to be uploaded that uses dynamic loading.

We are considering an alternate path which is to create a small objective-c library that effectively proxies through the calls from av foundation, however we are trying to avoid any objective-c/swift code.

0

There are 0 answers