Claudio
Claudio

Reputation: 2037

objective c - .m and .a files?

I have a IPhone project and I need to change some code in it. The problem is: this project doesn't have any .m file. I have all header files (.h) and some nib files. I found a .a(?) file and when I took a look in it, it had some code inside, aparently it's some kind of compilated file. Is there any way to de-compile this file?

Regards!

Upvotes: 1

Views: 2805

Answers (1)

Adam Rosenfield
Adam Rosenfield

Reputation: 400234

A .a file is a compiled static library file (aka archive). It does not contain any source code, only object code for one or more architectures.

What exactly do you need to change? What are you trying to achieve? There's almost certainly a better way to do it. You can use ar(1) utility to manipulate archive files, such as by extracting or replacing object files, but I strongly recommend against that unless you really know what you're doing.

Upvotes: 3

Related Questions