Building static lib and framework.

Using https://github.com/jverkoey/iOS-Framework as a reference.