Dynamic Library usage

Hi All,


is it (now) possible to submit an App to the App Store which is using a custom framework with a dynamic library?


i've read that this should be possible with iOS8.


if yes, does the app deployment target have to be iOS8 or is it ok if the target is iOS7? The SDK used during building is iOS8 or above.


Thank you in advance,
r

Accepted Answer

Your deployment target must be iOS 8 or later to link against a custom framework/dylib. Applications with a lower deployment target can not link against a custom framework.dylib but they may load them at runtime using dlopen, but only when running on an iOS 8 or later device [1].


[1]: See Deploying a Containing App to Older Versions of iOS in the App Extension P.G.

My app includes some dynamic Frameworks. All of them are loaded by the dlopen function at runtime. However, I found it would be failure at rate of 0.02%.

There are two kindles of errors. The most one shows that `the file does not exist`. Another one shows that `the dlopen function call failed`.

So, my questions are followings:

1. Would dynamic library files or picture files be lost when App downloading from AppStore?

2. Would the missing files affect the installation of App?

3. Which files are necessary to install applications and which ones are not?

4. What could I improve the rate of loading dynamic libraries successful at runtime?

Dynamic Library usage
 
 
Q