简体   繁体   中英

I've got a library file (.a). How can I go backwards from this to get some pseudo source code?

Specifically, I'd just like to check out what API calls are made by the library, and a few of the static strings that are in there too.

Is this doable, and what some basic steps I can take to get started? The library is for a universal iOS app.

The strings unix command could help you get the static strings.

To get some general info on libraries linked (and a lot more), use otool

eg otool -tV <library.a> could get you started, if you know what you're looking for grepping in there might be helpful.

If you want to get something resembling 'readable' code though, you'll need to decompile/disassemble the library (which might not be permitted). I'm sure tools could be found to help you with that.

Hopper是一款出色的工具,可以完全满足您的需求。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM