替换下面的值
- WorkSpaceName
- FrameworkName
- 路径
xcodebuild clean \
-workspace ios/WorkSpaceName.xcworkspace \
-scheme FrameworkName
xcodebuild archive \
-workspace ios/WorkSpaceName.xcworkspace \
-scheme FrameworkName \
-configuration Release \
-sdk iphonesimulator \
-destination='generic/platform=iOS Simulator' \
-archivePath ios/sdk/out/ios-simulator \
VALID_ARCHS=x86_64 \
ENABLE_BITCODE=NO \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild archive \
-workspace ios/WorkSpaceName.xcworkspace \
-scheme FrameworkName \
-configuration Release \
-sdk iphoneos \
-destination='generic/platform=iOS' \
# VALID_ARCHS=arm64 \ #如果想要只保留arm64可以把这行打开
-archivePath ios/sdk/out/ios-device \
ENABLE_BITCODE=NO \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild -create-xcframework \
-framework ios/sdk/out/ios-device.xcarchive/Products/Library/Frameworks/FrameworkName.framework \
-framework ios/sdk/out/ios-simulator.xcarchive/Products/Library/Frameworks/FrameworkName.framework \
-output ios/sdk/out/FrameworkName.xcframework
open ios/sdk/out