编译成libxxx.a文件后, 通过lipo把多个不同架构的文件合并起来成为一个文件
在build setting 设置 head search path , library search path
同时库要依赖系统的其他库,所以也要添加UIKit.framework, Foundation.framework, Security.framework, libz.dylib, CoreGraphics.framework.
https://github.com/gcesarmza/curl-android-ios/blob/master/curl-compile-scripts/build_iOS.sh