-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcreate-xcframework.sh
executable file
·75 lines (69 loc) · 3.09 KB
/
create-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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
xcodebuild archive \
-project BarChartKit.xcodeproj \
-scheme BarChartKit-Package \
-configuration Release \
-destination "generic/platform=iOS" \
-archivePath "$PWD/archives/BarChartKit-iOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project BarChartKit.xcodeproj \
-scheme BarChartKit-Package \
-configuration Release \
-destination "generic/platform=iOS Simulator" \
-archivePath "$PWD/archives/BarChartKit-iOS-Simulator" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project BarChartKit.xcodeproj \
-scheme BarChartKit-Package \
-configuration Release \
-destination "generic/platform=watchOS" \
-archivePath "$PWD/archives/BarChartKit-watchOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project BarChartKit.xcodeproj \
-scheme BarChartKit-Package \
-configuration Release \
-destination "generic/platform=watchOS Simulator" \
-archivePath "$PWD/archives/BarChartKit-watchOS-Simulator" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project BarChartKit.xcodeproj \
-scheme BarChartKit-Package \
-configuration Release \
-destination "generic/platform=macOS" \
-archivePath "$PWD/archives/BarChartKit-macOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project BarChartKit.xcodeproj \
-scheme BarChartKit-Package \
-configuration Release \
-destination 'generic/platform=macOS,variant=Mac Catalyst' \
-archivePath "$PWD/archives/BarChartKit-macCatalyst" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES \
SUPPORTS_MACCATALYST=YES
xcodebuild -create-xcframework \
-framework "$PWD/archives/BarChartKit-iOS.xcarchive/Products/Library/Frameworks/BarChartKit.framework" \
-debug-symbols "$PWD/archives/BarChartKit-iOS.xcarchive/dSYMs/BarChartKit.framework.dSYM" \
-framework "$PWD/archives/BarChartKit-iOS-Simulator.xcarchive/Products/Library/Frameworks/BarChartKit.framework" \
-debug-symbols "$PWD/archives/BarChartKit-iOS-Simulator.xcarchive/dSYMs/BarChartKit.framework.dSYM" \
-framework "$PWD/archives/BarChartKit-watchOS.xcarchive/Products/Library/Frameworks/BarChartKit.framework" \
-debug-symbols "$PWD/archives/BarChartKit-watchOS.xcarchive/dSYMs/BarChartKit.framework.dSYM" \
-framework "$PWD/archives/BarChartKit-watchOS-Simulator.xcarchive/Products/Library/Frameworks/BarChartKit.framework" \
-debug-symbols "$PWD/archives/BarChartKit-watchOS-Simulator.xcarchive/dSYMs/BarChartKit.framework.dSYM" \
-framework "$PWD/archives/BarChartKit-macOS.xcarchive/Products/Library/Frameworks/BarChartKit.framework" \
-debug-symbols "$PWD/archives/BarChartKit-macOS.xcarchive/dSYMs/BarChartKit.framework.dSYM" \
-framework "$PWD/archives/BarChartKit-macCatalyst.xcarchive/Products/Library/Frameworks/BarChartKit.framework" \
-debug-symbols "$PWD/archives/BarChartKit-macCatalyst.xcarchive/dSYMs/BarChartKit.framework.dSYM" \
-output artifacts/BarChartKit.xcframework