I interpret this question like this:
"Should I compile the C library code once and include the binary library in my project? Or should I include all the source code and compile it every time I create my application?"
It depends. One of the projects I'm working on depends on several external libraries. Basically, we have a simple rule:
Depending on the size of the library, you can set it up as a separate target in your project or for greater flexibility as a subproject of your main project.
If I were in your place, I would create libssh2 ahead of time and just include the binary library in my iPhone project. Of course, I would still keep the source of libssh2, if it needs to be restored in the future.
amrox
source share