feat(ios): add device details and reliable ipa build
This commit is contained in:
@@ -5,11 +5,14 @@ ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
IOS_ROOT="$ROOT/apps/ios"
|
||||
BUILD_ROOT="$ROOT/build/ipa"
|
||||
APP_NAME="MultiSimAdmin"
|
||||
SDK_PATH="$(xcrun --sdk iphoneos --show-sdk-path)"
|
||||
DERIVED_ROOT="${MULTI_SIMADMIN_IOS_DERIVED:-$IOS_ROOT/.build/ios-derived}"
|
||||
|
||||
cd "$IOS_ROOT"
|
||||
swift build --configuration release --product "$APP_NAME" \
|
||||
--triple arm64-apple-ios16.0 --sdk "$SDK_PATH"
|
||||
xcodebuild -scheme "$APP_NAME" \
|
||||
-destination 'generic/platform=iOS' \
|
||||
-configuration Release \
|
||||
-derivedDataPath "$DERIVED_ROOT" \
|
||||
build
|
||||
|
||||
rm -rf "$BUILD_ROOT"
|
||||
mkdir -p "$BUILD_ROOT/Payload/$APP_NAME.app"
|
||||
|
||||
Reference in New Issue
Block a user