resources - How to use iPhone SDK Private APIs -


I have not found an extensive list of the steps needed to access the private API from the iPhone Library.

Specifically, I would like to know how to get header files, if they are also important, then how to compile it (when I just add headers, it complains that the functions are not defined ), And what resources can be used to find out about private resources (such as from other user experiences, as if there are some)

I have read in other places, are there any alternative ways? I have noticed that there are iPhones personal SDKs, which is the highest of the latest resources you have recommended?

Most of the documents in the Private API, which are connected to everyone, which does not look like this

Please save the comment about not using the Private API ... The biggest risk to me Know:

  • The app will be rejected by Apple.
  • The app will break in future updates in the OS.

I am talking about legitimate uses like:

  • Private application usage (for example unit testing, or what is possible to see

Objective-almost completely reconstruction of headers There is enough information in compiled binary for only those things which are logical names, which can often be estimated by type or method prototype. The user is, and why some structure and enum definitions that the best way to get headers programs such as class dump. They are comprehensive, which includes every method, whether it is in the actual header or not, is up to date and does not need to be distributed. Another way to get headers is to look at the public version of the same framework, for example webkit is personal on the iPhone only and otherwise well-documented.

If you are interested in things, then the purpose-you have to do a much more old fashioned way, slogging through the disassembly to guess the function's arguments. Once you get some symbols, search for them and you will probably get a header posted by another person. Otool is a good place to start.

If you include headers, then this purpose should be for C or C, you should also include frameworks or libraries, the header should declare methods like any other headers . Most of the purpose- the stuff is in the Private Framework folder next to the regular framework folder. You can see the libraries in the usr / lib folder.

Keep in mind that there are so many differences between the simulator and the device, so make sure you create the header from the real device. There are some ways that you will not be allowed to run as a sandboxed app.


Comments