forked from OutSystems/OSPaymentsLib-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
30 lines (25 loc) · 1.06 KB
/
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
27
28
29
30
rm -rf build
sudo xcode-select --switch /Applications/Xcode_15.1.app
xcodebuild archive \
-workspace OSPaymentsLib.xcworkspace \
-scheme OSPaymentsLib \
-configuration Release \
-sdk iphonesimulator \
-destination 'generic/platform=iOS Simulator' \
-archivePath './build/OSPaymentsLib.framework-iphonesimulator.xcarchive' \
SKIP_INSTALL=NO \
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild archive \
-workspace OSPaymentsLib.xcworkspace \
-scheme OSPaymentsLib \
-configuration Release \
-sdk iphoneos \
-destination 'generic/platform=iOS' \
-archivePath './build/OSPaymentsLib.framework-iphoneos.xcarchive' \
SKIP_INSTALL=NO \
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild -create-xcframework \
-framework './build/OSPaymentsLib.framework-iphonesimulator.xcarchive/Products/Library/Frameworks/OSPaymentsLib.framework' \
-framework './build/OSPaymentsLib.framework-iphoneos.xcarchive/Products/Library/Frameworks/OSPaymentsLib.framework' \
-output './build/OSPaymentsLib.xcframework'
codesign --timestamp -v --sign 'OutSystems Inc. (S25XN959HW)' './build/OSPaymentsLib.xcframework'