[RedRain笔记] - 清除.a中冲突文件

96
rxdxxxx
2017.07.19 13:45* 字数 0
mkdir librepack
cp libSomeSDK.a librepack/
cd librepack


mkdir armv7
lipo libSomeSDK.a -thin armv7 -output armv7/libSomeSDK-armv7.a
cd armv7 && ar xv libSomeSDK-armv7.a
rm Reachability.o FMDatabase.o FMDatabasePool.o FMDatabaseQueue.o FMResultSet.o
cd .. && ar rcs libSomeSDK-armv7.a armv7/*.o

mkdir arm64
lipo libSomeSDK.a -thin arm64 -output arm64/libSomeSDK-arm64.a
cd arm64 && ar xv libSomeSDK-arm64.a
rm Reachability.o FMDatabase.o FMDatabasePool.o FMDatabaseQueue.o FMResultSet.o
cd .. && ar rcs libSomeSDK-arm64.a arm64/*.o

lipo -create libSomeSDK-armv7.a libSomeSDK-arm64.a -output libSomeSDK-new.a
你不知道的iOS
Web note ad 1