How IOS is developed to generate the SDK

Source: Internet
Author: User

1. Create a new project:

  

2. Select the minimum supported system version (project and targets are to be modified):

3. Create your own class method and import the created. h file into the. h file that created the project that was automatically generated when other projects use this SDK You only need to import this one. h file (You can imagine the type that was imported when you called the SDK, for example:), the implementation of the SDK functionality is placed in the. m file that you created.

4. Open the. h file, hide the. m file (to prevent others from viewing the more achievable principle, just the same method name in the. h file, the implementation of the method is placed in the. m file)

Here are three options public is open, when others call the SDK can see the project is hidden private is privately, here just need to put some. h files directly dragged over the line

  

5. After all functions have been written, modify edit Scheme, run->build Configuration debug to release and then run (command+r)

6. After running the SDK will be generated, is a framework, and then step-by-step to find the framework, copy out the search method:

Click Widow->projects

Click on this arrow to find your folder:

Based on the pop-up folder directory, step-by-step find to Framework:build->products->release-iphonesimulator->framework

This framework is the SDK that we generate, and it is possible to use this frame as a direct drag into someone else's project.

  

How IOS is developed to generate the SDK

Related Article

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.