-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathgenerate_xcframeworks.sh
executable file
·41 lines (33 loc) · 1.19 KB
/
generate_xcframeworks.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
#!/usr/bin/env bash
# Delete existing file
rm -r ./Products/RIBsTreeViewerClient.xcframework
# Generate RIBsTreeViewerClient
xcodebuild \
'ENABLE_BITCODE=YES' \
'BITCODE_GENERATION_MODE=bitcode' \
'OTHER_CFLAGS=-fembed-bitcode' \
'BUILD_LIBRARY_FOR_DISTRIBUTION=YES' \
'SKIP_INSTALL=NO' \
archive \
-project RIBsTreeViewerClient.xcodeproj \
-scheme 'RIBsTreeViewerClient' \
-destination 'generic/platform=iOS Simulator' \
-configuration 'Release' \
-archivePath 'build/RIBsTreeViewerClient-iOS-Simulator.xcarchive'
xcodebuild \
'ENABLE_BITCODE=YES' \
'BITCODE_GENERATION_MODE=bitcode' \
'OTHER_CFLAGS=-fembed-bitcode' \
'BUILD_LIBRARY_FOR_DISTRIBUTION=YES' \
'SKIP_INSTALL=NO' \
archive \
-project RIBsTreeViewerClient.xcodeproj \
-scheme 'RIBsTreeViewerClient' \
-destination 'generic/platform=iOS' \
-configuration 'Release' \
-archivePath 'build/RIBsTreeViewerClient-iOS.xcarchive'
xcodebuild \
-create-xcframework \
-framework 'build/RIBsTreeViewerClient-iOS-Simulator.xcarchive/Products/Library/Frameworks/RIBsTreeViewerClient.framework' \
-framework 'build/RIBsTreeViewerClient-iOS.xcarchive/Products/Library/Frameworks/RIBsTreeViewerClient.framework' \
-output 'Products/RIBsTreeViewerClient.xcframework'