forked from segmentio/analytics-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·26 lines (20 loc) · 700 Bytes
/
build.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
#!/bin/zsh
# check if `swift-create-xcframework` tool is installed.
# command will return non-zero if not.
if ! command -v swift-create-xcframework &> /dev/null
then
echo "Swift's create-xcframework tool is required, but could not be found."
echo "Install it via:"
echo " $ brew install mint"
echo " $ mint install unsignedapps/swift-create-xcframework"
echo ""
exit 1
fi
echo "Removing old files ..."
rm Segment.zip
rm Sovran.zip
rm Segment.sha256
rm Sovran.sha256
echo "Building XCFrameworks ..."
swift create-xcframework --clean --platform ios --platform macos --platform maccatalyst --platform tvos --platform watchos --stack-evolution --zip Segment Sovran
echo "Done."