iOS static library (. a files)

Source: Internet
Author: User

1. Find the Static library project

2. Create a static library project with a. h and. m file

3. Write your method in the. h and. m files

4. Select the Command+b and emulator to find the location in the folder

The. A file of the simulator and the real machine is then generated.

5. Check whether the. A file is a real machine or an emulator (this step is not possible)

6. The merge. A file allows it to run on both the emulator and the real machine, but the file will become larger, depending on the situation, input terminal merge code,-output is the address of the output

If unsuccessful, return to the project Command+b,command+shift+b more than a few times to merge!!!! Test, sometimes not successful


7. Pack the files you want, including. A files and header files, import the works to be used, just like with a third party. We're going to test it with a project.


8. Introduction of header file output

#import "Staticlibtest.h"

End

iOS static library (. a files)

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.