is it allowed to use dylibs in iOS ?

Hi,

My question is not how to use a dylib but I am wondering whether if they are allowed to use in an app released in AppStore or not.

My company develops c/c++ cross platform libraries to be used in different environments and now we are trying to use dylibs in iOS, so far we can embed them and call the functions from the libraries successfully, how ever when we submit the app including the dylib to the AppStore, the Apptore validation fails because of the dylib,

We tried below ways,

  1. wrapping dylib into framework (dylib is inside the Frameworks folder of framework)

(Result: Framework contains disallowed file 'Frameworks')

  1. wrapping dylib into framework (dylib is in root folder of framework)

(Result: your app can't contain standalone executables or libs other than a valid CFBundleExecutable)

  1. converting dylib into a fake framework

(Result: invalid bundle, framework doesn't support the minimum OS version specified in the info.plist file.)

So, if the dylibs are allowed to use in iOS, we need a documentation about where to put them correctly that will make our app pass the AppStore validation, thanks

You need to build a framework from the source code, starting from the Framework template in Xcode. Technote 2435 has the info you need.

Hi ms-nova, Did you find a solution? I am dealing with the same problem.

I have the same problem as author post. Any news or solutions ? Apple docs does not help on that.

is it allowed to use dylibs in iOS ?
 
 
Q