SNos
SNos

Reputation: 3470

IOS - XCODE - reverse IPA to Swift code

I have started building an iOS app using xcode and swift. During my developing work my HHD failed and I lost the project file and I have been left with just the ipa installed on my iPhone.

i was wondering if its possible to get the code back instead of starting everything again.

I have been looking online and I found that this may be possible using a jailbreak iPhone and gbd debugger.

How could I do this?

Upvotes: 2

Views: 1169

Answers (2)

zaph
zaph

Reputation: 112855

It is not possible to recover the code (no source code is in the app executable) but the other assets such as images can be. Even it the images were in an Asset catalog there are programs that can recover them.

Really, you need to use a backup, options include:

  1. Get an external HD and use TimeMachine.
  2. Use a remote repository such as Bitbucket or GitHub. The integration in Xcode is good.
  3. Use an offsite backup service such as BackBlaze.

Keep in mind that data loss will occur periodically trough your career, start protecting yourself today. Tomorrow, whenever that might really be, will not be soon enough.

Upvotes: 0

Eiko
Eiko

Reputation: 25632

Decompiling is a non-trivial task, and the code you might get will be far from what you put in. It also cannot recreate project files and structure etc. The time you will need to make a usable thing out of it (if even possible) will be tremendous.

Your best bet is to learn your lesson (i.e. backup, or even better with a remote git repository) and start over again. You won't be starting from scratch in your head, and the rewrite should get built quicker and cleaner.

Upvotes: 1

Related Questions