I'm trying to get jailbreak statistics for a University project related to security in mobile devices. My purpose is to disassemble, add a sample code and re-assemble to obtain a runnable iOS app again.
I have read a lot about IDA, IDA pro, HEX-Rays, and o'tool to disassemble an ipa file.
Since i'm working with a macbook pro, i think that using otool to disassemble an '.ipa' file is the best and faster way. I have tried it with a non-signed
.ipa and I have obtained the assembly code.
Then, I have difficulties. I have tried to create a new Xcode project, import this assembly code and try to compile it to generate a new app, without inserting new code just to simplify the process.
But when i tried to compile, Xcode fails in every single code line.
I think that my problem is, that the process described:
- Disassemble with otool
- Import the code in XCode
- Compile and build
- Obtain the new app
Is not correct.