-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathios_create_xcframework.sh
More file actions
executable file
·29 lines (25 loc) · 1.02 KB
/
ios_create_xcframework.sh
File metadata and controls
executable file
·29 lines (25 loc) · 1.02 KB
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
#!/bin/sh
set -x
export FRAMEWORK_NAME=CodeKit
cd bindings/CodeKit
# Build for iOS
xcodebuild archive \
-project CodeKit.xcodeproj \
-scheme ${FRAMEWORK_NAME}-iOS \
-destination "generic/platform=iOS" \
-archivePath "archives/${FRAMEWORK_NAME}-iOS"
xcodebuild archive \
-project CodeKit.xcodeproj \
-scheme ${FRAMEWORK_NAME}-iOS \
-destination "generic/platform=iOS Simulator" \
-archivePath "archives/${FRAMEWORK_NAME}-iOS_Simulator"
xcodebuild archive \
-project CodeKit.xcodeproj \
-scheme ${FRAMEWORK_NAME}-macOS \
-destination "generic/platform=macOS" \
-archivePath "archives/${FRAMEWORK_NAME}-macOS"
xcodebuild -create-xcframework \
-archive archives/${FRAMEWORK_NAME}-iOS.xcarchive -framework ${FRAMEWORK_NAME}.framework \
-archive archives/${FRAMEWORK_NAME}-iOS_Simulator.xcarchive -framework ${FRAMEWORK_NAME}.framework \
-archive archives/${FRAMEWORK_NAME}-macOS.xcarchive -framework ${FRAMEWORK_NAME}.framework \
-output xcframeworks/${FRAMEWORK_NAME}.xcframework