This is the first time I ask about stackoverflow and I am desperate.
My task is to load dylib or join the static lib to an existing executable for an iOS device.
I will use static void __attribute__((constructor)) initialize(void)to start swizzling. This executable is for the embedded enterprise application, so I donβt have to go through the Apple appstore (because they will reject it).
The reason for this is to accept the existing IPA from the client and its signature keys and add new features to their application without developer intervention.
There is one company that does this called nukona. You can watch the movie here: https://www.youtube.com/watch?feature=player_embedded&v=z9rrOB6lOxY
I can say that I tried to put LSEnvironment inside the plist file with DYLD_INSERT_LIBRARIES, but it turned out that LSEnvironment does not seem to have any effect in the sandbox of the iOS application.
I also tried install_name_tool to change one of the dependencies and replace it with my dylib (which also has this dependecy). He falls without information why.
Obviously, if I add dylib to the test application in Xcode and recompile it, it works fine, which is the data. However, I cannot ask, for example, the company administrator. Recovery may prevent customers from using this library.
, , osx, IOS.
LC_LOAD_DYLIB Mach-O (OSX)
, , - , , , ..
.
.