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