This process is made in debug mode, the release process is the same, and the run release mode is modified
Create a project
Create a pair of files
Add method + (void) TestMethod;
+ (void) testmethod{
NSLog (@ "-=-=-=-=-=-=-=-");
}
Set the newly added. h file to visible
At this point, the TestMethod method is dragged to public in project
A framework file that generates two environments, respectively, in an emulator and a true machine environment
Merging the framework files of two environments
Click New Run Script Phase
Add script if ["${action}" = "Build"]
Then
Install_dir=${srcroot}/products/${project_name}.framework
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.