IPhone development-adding APIs to xcode

Source: Internet
Author: User

Private APIs need to be exported and export tools need to be used (currently class-dump. And dumpframeworks. pl are popular)
Download: http://ericasadun.com/HeaderDumpKit/

Usage:
1. Put the downloaded class-dump under usr/local/bin.
If '/usr/local/bin'
If you do not know where it is, enter 'open-a finder/usr/local/bin' under terminal'
To open the directory.
Remember to use chmod to modify the execution permission for class-dump. for example, to modify class-dump in usr/local/bin, you can switch to the usr/local/bin directory in terminal: chmod 777 class-dump.


Use class-dump independently, provided that you have put the downloaded class-dump under usr/local/bin.
Syntax: Class-dump-H <target file path>-O <save path>

Export the springboard below
Open terminal Input
Class-dump-H/developer/platforms/iphonesimulator. Platform/developer/sdks/iphonesimulator4.2.sdk/system/library/coreservices/Springboard. app-O/users/LKK/desktop/spring
In this way, the springboard directory will be generated in the user directory. The exported. H is put here.

Then copy the directory
/Developer/platforms/iphoneos. Platform/developer/sdks/iphoneos4.2.sdk/usr/include/springboard/

Now, the private API is exported, and import <springboard/XX. h> is directly used for reference in the project.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.