NOTE I am referring to a C library, not an Objective-C one.
I thought I was doing things correctly by including the dylib in the app bundle and then loading it via dlopen. This worked very well in testing on both device and simulator, but then a user reported this:
ERROR ITMS-90171: “Invalid Bundle Structure - The binary file ‘myapp.app/libLiteCore.dylib’ is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure1 for information on the iOS app bundle structure.”
I was following the documentation here but I wonder if this entire section is invalid? Or only works for dynamic libraries that are preinstalled on the system? Is the requirement that everything needs to be a static library still current?