-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerateFatBinary.sh
executable file
·29 lines (25 loc) · 1 KB
/
generateFatBinary.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
!#/bin/sh
rm -rf build/* && \
rm -rf Products/*.xcframework && \
xcodebuild archive \
-project SecretSquirrelFramework/SecretSquirrelFramework.xcodeproj \
-scheme SecretSquirrelFramework \
-configuration Release \
-destination 'generic/platform=iOS Simulator' \
-archivePath './build/SecretSquirrelFramework-iphonesimulator.xcarchive' \
SKIP_INSTALL=NO \
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES && \
xcodebuild archive \
-project SecretSquirrelFramework/SecretSquirrelFramework.xcodeproj \
-scheme SecretSquirrelFramework \
-configuration Release \
-destination 'generic/platform=iOS' \
-archivePath './build/SecretSquirrelFramework-iphoneos.xcarchive' \
SKIP_INSTALL=NO \
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES && \
xcodebuild -create-xcframework \
-archive './build/SecretSquirrelFramework-iphonesimulator.xcarchive' \
-framework 'SecretSquirrelFramework.framework' \
-archive './build/SecretSquirrelFramework-iphoneos.xcarchive' \
-framework 'SecretSquirrelFramework.framework' \
-output 'Products/SecretSquirrel.xcframework'