I tried to inject my own library into an iOS binary(ipa) file. But I was not able to do it. This question may have suggestions in this site, but there is no proper solution. I already tried implementing some of the solutions or suggestions mentioned in the below links,
Add load command to mach-o binary
Inject dynamic library into enterprise app (ipa)
I want to know the flow of execution of an IPA file
http://coscolla.net/injecting-code-to-a-ipa/
I tried the to insert a load command of a library as per documentation mentioned in optool. which actually expects run time arguments. So I included the below arguments under Arguments section of Xcode,
install -c -p '/Users/raj/Desktop/Swizzling/libSwizzling.a' -t '/Users/raj/Documents/Builds/temp/Welcome.ipa' -o= '/Users/raj/Documents/Builds/temp/modified.ipa'
But it is not working. Even tried some other simple command and same result. If any one successfully used optool and its commands can help me out.
dyci-main is a code injection tool through which we can not add or insert library. This will be helpful for adding or modifying some logics or debugging purpose. Apart from that we can not do anything I hope. If any body having an idea to insert load command is greatly appreciated.
injecting-code-to-a-ipa is having some sort of solution but it is not clear. Even if you follow each and every steps you can't make it success. The main confusing part is some command load instruction we must execute as per screenshot and have to save as dynamic library. Which is the input file to execute commands? If you are able to make it successful, please let me know.
Unfortunately I was not able to make it working state. I really appreciate a person who really gives a clear and proper or working solution to this problem.
Thanks in advance.