1.Build SDK
2.在文件夹中找到对用的SDK
3.合并SDK
1).framework合并
lipo -create .../Release-iphonesimulator/XXXSDK.framework/XXXSDK .../Release-iphoneos/XXXSDK.framework/XXXSDK -output .../Release-iphoneos/XXXSDK
将 .../Release-iphoneos/XXXSDK 替换 .../Release-iphoneos/XXXSDK.framework/XXXSDK
以上操作完成后.../Release-iphoneos/XXXSDK.framework为最新SDK
查看当前SDK支持框架
lipo -info .../Release-iphoneos/XXXSDK.framework/XXXSDK
Architectures in the fat file: .../Release-iphonesimulator/XXXSDK.framework/XXXSDK are: arm64 x86_64
2).xcframework合并
xcodebuild -create-xcframework
-framework .../Release-iphonesimulator/XXXSDK.framework
-framework .../Release-iphoneos/XXXSDK.framework
-output .../XXXSDK.xcframework