-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-xcframework.sh
executable file
·99 lines (91 loc) · 3.8 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-configuration Release \
-destination "generic/platform=iOS" \
-archivePath "$PWD/archives/LogKit-iOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-configuration Release \
-destination "generic/platform=iOS Simulator" \
-archivePath "$PWD/archives/LogKit-iOS-Simulator" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-configuration Release \
-destination "generic/platform=watchOS" \
-archivePath "$PWD/archives/LogKit-watchOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-configuration Release \
-destination "generic/platform=watchOS Simulator" \
-archivePath "$PWD/archives/LogKit-watchOS-Simulator" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-configuration Release \
-destination "generic/platform=tvOS" \
-archivePath "$PWD/archives/LogKit-tvOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-configuration Release \
-destination "generic/platform=tvOS Simulator" \
-archivePath "$PWD/archives/LogKit-tvOS-Simulator" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-configuration Release \
-destination "generic/platform=macOS" \
-archivePath "$PWD/archives/LogKit-macOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES
xcodebuild archive \
-project LogKit.xcodeproj \
-scheme LogKit-Package \
-configuration Release \
-destination 'generic/platform=macOS,variant=Mac Catalyst' \
-archivePath "$PWD/archives/LogKit-macCatalyst" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
APPLICATION_EXTENSION_API_ONLY=YES \
SUPPORTS_MACCATALYST=YES
xcodebuild -create-xcframework \
-framework "$PWD/archives/LogKit-iOS.xcarchive/Products/Library/Frameworks/LogKit.framework" \
-debug-symbols "$PWD/archives/LogKit-iOS.xcarchive/dSYMs/LogKit.framework.dSYM" \
-framework "$PWD/archives/LogKit-iOS-Simulator.xcarchive/Products/Library/Frameworks/LogKit.framework" \
-debug-symbols "$PWD/archives/LogKit-iOS-Simulator.xcarchive/dSYMs/LogKit.framework.dSYM" \
-framework "$PWD/archives/LogKit-watchOS.xcarchive/Products/Library/Frameworks/LogKit.framework" \
-debug-symbols "$PWD/archives/LogKit-watchOS.xcarchive/dSYMs/LogKit.framework.dSYM" \
-framework "$PWD/archives/LogKit-watchOS-Simulator.xcarchive/Products/Library/Frameworks/LogKit.framework" \
-debug-symbols "$PWD/archives/LogKit-watchOS-Simulator.xcarchive/dSYMs/LogKit.framework.dSYM" \
-framework "$PWD/archives/LogKit-tvOS.xcarchive/Products/Library/Frameworks/LogKit.framework" \
-debug-symbols "$PWD/archives/LogKit-tvOS.xcarchive/dSYMs/LogKit.framework.dSYM" \
-framework "$PWD/archives/LogKit-tvOS-Simulator.xcarchive/Products/Library/Frameworks/LogKit.framework" \
-debug-symbols "$PWD/archives/LogKit-tvOS-Simulator.xcarchive/dSYMs/LogKit.framework.dSYM" \
-framework "$PWD/archives/LogKit-macOS.xcarchive/Products/Library/Frameworks/LogKit.framework" \
-debug-symbols "$PWD/archives/LogKit-macOS.xcarchive/dSYMs/LogKit.framework.dSYM" \
-framework "$PWD/archives/LogKit-macCatalyst.xcarchive/Products/Library/Frameworks/LogKit.framework" \
-debug-symbols "$PWD/archives/LogKit-macCatalyst.xcarchive/dSYMs/LogKit.framework.dSYM" \
-output artifacts/LogKit.xcframework