0

Possible Duplicate:
Extract Objective-c binary

My Xcode recently crashed and corrupted my project that contains my app. I am away from my time machine backup, and need to get the files back (if only the raw code). Is there any way to decompile my .app or simulator file to get the code back?

Community
  • 1
  • 1
Hersh Bhargava
  • 615
  • 4
  • 19
  • 4
    I can't think of a way that XCode will have damaged your source code - your project file will certainly have been damaged but the source itself? What exactly happened? – deanWombourne Dec 06 '11 at 14:30
  • Other possible related question: [Is there a way to reverse engineer an Xcode project from a .app file?](http://stackoverflow.com/questions/7322996/) –  Dec 06 '11 at 16:10

2 Answers2

1

As a part of the build process, Xcode compiles each source class into a .o file. There's no way to open these files, but you can use these complied classes as is.

if you can find the .o files or the .a library in your build folder, you can import them into a new Xcode project. You can also open those .o files in text editor and usually the object names are in the end. I've done something like that in order to "borrow" some complied code.

It's more an hack than a solution, and you should do it as a last resort only

Till
  • 27,559
  • 13
  • 88
  • 122
aporat
  • 5,922
  • 5
  • 32
  • 54
0

In a word "no". The source code is not in the binary app.

zaph
  • 111,848
  • 21
  • 189
  • 228