1.sip库编译过程:
arm64
OSIP编译过程:
./configureCC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clangCFLAGS="-DPJ_SDK_NAME=""iPhoneOS10.0.sdk"" -arch arm64-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk"--host=arm-apple-darwin9 --target=arm-apple-darwin9--prefix=/Users/amesty/Desktop/OSIP/osip/arm64
make
makeinstall
===========================================
EXOSIP编译过程:
./configureCC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clangCFLAGS="-DPJ_SDK_NAME=""iPhoneOS10.0.sdk"" -arch arm64-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk" LDFLAGS=" -framework MobileCoreServices -framework CFNetwork-framework CoreFoundation" --disable-openssl --host=arm-apple-darwin9--target=arm-apple-darwin9 --prefix=/Users/amesty/Desktop/OSIP/exosip/arm64
将exosip下的三个包合并起来,并将include下的头文件拷贝过去即可。
lipo -create /Users/amesty/Desktop/OSIP/exosip/arm64/lib/libosip2.a/Users/amesty/Desktop/OSIP/exosip/armv7/lib/libosip2.a/Users/amesty/Desktop/OSIP/exosip/armv7s/lib/libosip2.a -output/Users/amesty/osip/libosip2.a
2.xcode设置的深坑
1.bitcode设置
2.找ip使用dns解析的库文件