diff --git a/scripts/resign.sh b/scripts/resign.sh new file mode 100755 index 000000000..dfa6bce35 --- /dev/null +++ b/scripts/resign.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +if [ $# -ne 4 ]; then + echo "usage: $0 UTM.xcarchive PROFILE_NAME TEAM_ID outputPath" + exit 1 +fi + +INPUT=$1 +PROFILE_NAME=$2 +TEAM_ID=$3 +OUTPUT=$4 +OPTIONS="/tmp/options.plist" + +cat >"$OPTIONS" < + + + + compileBitcode + + method + development + provisioningProfiles + + com.osy86.UTM + ${PROFILE_NAME} + + signingStyle + manual + stripSwiftSymbols + + teamID + ${TEAM_ID} + thinning + <none> + + +EOL + +xcodebuild -exportArchive -exportOptionsPlist "$OPTIONS" -archivePath "$INPUT" -exportPath "$OUTPUT" +rm "$OPTIONS"