There is a code that I want to include in most of my projects. Things like AFNetworking, categories for CoreData and unit testing, etc.
It seems logical to include all this in a static library, and then use it in every project. I noticed that many third-party libraries (for example, AFNetworking and the predecessor ASIHTTP) are included in the projects, copying all the source files, and then manually linking the necessary libraries to the project goal.
It seems to me that this is the easiest way. It took a long time to figure out how to incorporate an existing static library into a project. Even after I knew, it still seems a pain for this for every new project. In addition, the header search paths you specify apply to the local directory with the static library files. Wouldn't it be easier, and is there a way to copy static library files into a project? This is the same idea as including class files directly, as most libraries do, but it would be more organized, because everything would be concentrated in one library project, instead of having class files everywhere and including all of them.
Static libraries believe that they should be the right way. Create a library that can be used with all projects that include the classes needed for each project. Has the meaning. I just argue because it seems right to leave everything from the βformalβ library and just copy all the class files.
I think I'm just looking for what experienced developers consider the best option.
Logan serman
source share