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?