Create an iOS static library
simply write a printed code
after the encoding is complete, the direct run will successfully generate the. A file, select Xcode->window->organizer->projects->your Project, open the project's derived data directory, This will find the generated. A file,
the static library generates
If you want to import a static library, there are three waysThe first type:is to add the include and. A to the project by adding Files to "mylib" method add to target project->build Phases->link Binary with libraries inside
whether copy is checked according to your needs
The second type: Drag the project that generates. A directly to the project you want to use . Xcodeproj then in the build phases->target Dependencies click "+" to add the Target of the Static library project to the inside
Third: Set the search path for the corresponding. A and header files in build settings
Xcode 5 After the auto link, of course, preferably in other linker flags plus-LLIB
Finally, the careful classmate will find that I use the static library libmyframework.a is actually a project to create a static libraryto test if a static library references B static libraries, do you still need static library B? after my experiment, I found that the first kind of use, the other two have toonce the encoding is complete, the direct run will be able to successfully generate the framework file, select Xcode->window->organizer->projects->your Project and open the project's derived Data directory, so you can find the generated framework file,
Xcode6 making iOS. A static library small note