iOS 静态库平台合并脚本
libwebsockets-i86.a libwebsockets-x86_64.a
libwebsockets-arm32.a libwebsockets-arm64.a
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LIPO="xcrun -sdk iphoneos lipo"
STRIP="xcrun -sdk iphoneos strip"
LIBNAME=libwebsockets
$LIPO -create $DIR/$LIBNAME-*.a -output $DIR/$LIBNAME.a
$STRIP -S $DIR/$LIBNAME.a
$LIPO -info $DIR/$LIBNAME.a