How to make. A static library? Synthetic multi-schema static library?

Source: Internet
Author: User

08_01 Static Library

  

08_02 make a static library . A

1. New Project com+shift+n: select Framework&Library.

  

2. Next step . the project name cannot be in Chinese .

3. after writing the code . Run with the real machine . A static library is automatically generated

  

4. in the Products folder .   A static library file that changes from red to black . Show in Finder This folder will generate one . A file

  

5. only the main file is in the Include folder . H file . the new hmtool.    H need to be added manually .

1> can be manually copied directly

2>, first Add the run once in Xcode

  

Use the created static library . A

1. the entire debug- Iphoneos folder dragged into xcode . debug-iphonesimulator drag into , on the emulator

2. If you drag the Debug-iphonesos folder into Xcode only, the true emulator will run and the error is not available. Crashes .

The schema of the static library is incorrect .

  

3. Debug-iphonesimulator is importedand also reported error is run on the emulator . description of the emulator version is incorrect

  

4. Summary of the error. and The architecture of the simulator :

  

Add : 1. View the schema of the static library

  

2. Error : The terminal CD the correct file path , cannot find the folder inside

  

  

08_04 synthetic multi-schema static library

  

Way One :

  

Mode two :

  

To manually add a static library schema :

  

  

  

08_05 Picture Resource Pack

When a static library requires a resource such as a picture , it is not packaged in . A file .

is to create a folder . Rename the hmtool. Bundle, you need to right-click to display the contents of the package to open the picture into it .

Bundle the resource bundles and the . A file is placed in the same folder . you can use it by dragging it into the project together .

  

Call the hmtool.bundle Package-type image method :

  

How to make. A static library? Synthetic multi-schema static library?

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.