AFNetworking/AFNetworking — pull request #502 by diederich (2012-09-05 22:27:42+00:00)
Title: features/static library

This pull request adds a single target xcodeproject that builds a static library.

The static library builds for iOS as well as MacOS. The xcodeproject was added to the workspace and the sample projects were changed to make use of the static library. (In separate commits, so this can easily be undone if the sample should still use the raw source files).
Besides that there's one extra step to be aware of, changing the header search paths in the library-using-app to make archive builds work. I've separated this in an additional commit.

The static library target is not meant to be distributed as (fat) binary, but just project that keeps the sources and the buildsystem together.

--

There have been a few PRs and issues regarding a static library target (#95, #219, #54), so I think there is at least some interest in this.

My personal reason to have AFNetworking available as a static library is reuse in an existing app. I have an app that already uses AFNetworking, but I want to add another 3rd party library which also uses AFNetworking.
With the static library target I can just drop AFNetworking and the other 3rd party lib into a workspace and everything (at least after setting up the scheme's dependencies) just works.