-
Notifications
You must be signed in to change notification settings - Fork 3
/
build_testflight.sh
executable file
·18 lines (16 loc) · 1 KB
/
build_testflight.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
set -e
APP_NAME=ValidationRelay\ TestFlight
xcodebuild -configuration Release -derivedDataPath DerivedData/ValidationRelay -destination 'generic/platform=iOS' -scheme "ValidationRelay TestFlight" CODE_SIGNING_ALLOWED="NO" CODE_SIGNING_REQUIRED="NO" CODE_SIGN_IDENTITY=""
ldid -SValidationRelay/ValidationRelay.entitlements -Icom.apple.TestFlight "DerivedData/ValidationRelay/Build/Products/Release-iphoneos/$APP_NAME.app/$APP_NAME"
ldid -STestFlightServiceExtension/TestFlightServiceExtension.entitlements -Icom.apple.TestFlight.ServiceExtension "DerivedData/ValidationRelay/Build/Products/Release-iphoneos/$APP_NAME.app/PlugIns/TestFlightServiceExtension.appex/TestFlightServiceExtension"
echo signed.
pushd DerivedData/ValidationRelay/Build/Products/Release-iphoneos
rm -rf Payload "$APP_NAME.ipa"
mkdir Payload
cp -r "$APP_NAME.app" Payload
zip -qry "$APP_NAME.tipa" Payload
popd
cp "DerivedData/ValidationRelay/Build/Products/Release-iphoneos/$APP_NAME.tipa" .
rm -rf Payload
open -R "$APP_NAME.tipa"