forked from Tencent/MMKV
-
Notifications
You must be signed in to change notification settings - Fork 1
/
archive_xcframework.sh
executable file
·38 lines (33 loc) · 1.03 KB
/
archive_xcframework.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
rm -rf archives
xcodebuild archive \
-workspace MMKV.xcworkspace \
-scheme MMKV \
-configuration Release \
-destination "generic/platform=iOS" \
-archivePath "archives/MMKV-iOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild archive \
-workspace MMKV.xcworkspace \
-scheme MMKV \
-configuration Release \
-destination "generic/platform=iOS Simulator" \
-archivePath "archives/MMKV-iOS-Simulator" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild archive \
-workspace MMKV.xcworkspace \
-scheme MMKV \
-configuration Release \
-destination "generic/platform=macOS" \
-archivePath "archives/MMKV-macOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild \
-create-xcframework \
-archive archives/MMKV-iOS.xcarchive -framework MMKV.framework \
-archive archives/MMKV-iOS-Simulator.xcarchive -framework MMKV.framework \
-archive archives/MMKV-macOS.xcarchive -framework MMKV.framework \
-output archives/MMKV.xcframework
zip -r -X "archives/MMKV.xcframework.zip" "archives/MMKV.xcframework"