Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Having an .ipa file, is there any way I can get its source code?

It was possible when iOS apps used to be .app

share|improve this question
1  
In the question you link, it was not possible to get the actual source code. It was possible to recreate code that did the same thing, and that is still possible. –  ughoavgfhw Nov 6 '12 at 18:58
    
@ughoavgfhw Can you please give some more details, as to how it's possible, what are the steps involved? –  user221287 Nov 7 '12 at 14:49
2  
Reverse engineering is kind of complicated. The basic idea is, in order to run a program the processor needs instructions. These instructions are documented, so you can find them in the file and determine what they do. Then you write code that does the same thing. –  ughoavgfhw Nov 7 '12 at 17:47

1 Answer 1

up vote 3 down vote accepted

No - the IPA format does not make source code inclusion mandatory, so there’s no general way to do what you ask. As alluring as the idea is, just because something is possible on Android (What you’re talking about is not in the sense you want it), doesn’t mean it will be possible on iOS.

Now, if the developer decides to embed the source code into the IPA - you will be able to read it depending on the method of packaging it since the IPA contents are well documented by Apple on the developer site and many utilities exist to decode the application bundles.

share|improve this answer
    
I have edited the question to make better sense. –  user221287 Nov 6 '12 at 16:30
    
I have edited the answer to make it more widely useful to others with a similar question. Feel free to revert / change again my edits if I made an error or went too far on the collaborative editing. –  bmike Nov 6 '12 at 16:32
    
@bmike Can you please give a few examples of the "utilities" to decode application bundles? –  user221287 Nov 6 '12 at 16:34
    
I'd rather not confuse this question with that level of added detail in the answer - it's fine as it is - short and simple. You can (should) ask that as well but keep in mind - this site is not for developers - so be sure there is a good use case for normal users of Apple products to need to decode an IPA. That follow on question might be better suited for Stack Overflow. Either way, you can link to that new question here in the answer or the comments so the two are linked and others can follow the flow of information and answers. –  bmike Nov 6 '12 at 16:37
    
@duci9y - I am confused - where is there any reference to Android in the question or earlier in the answer –  Mark Jan 8 '13 at 14:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.