Files
ucvl-zonghengjia-open-source/ios/Scripts/verify-and-archive.sh
T
2026-10-11 23:23:20 +00:00

36 lines
1001 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
test -n "${DEVELOPMENT_TEAM:-}" || {
echo "请设置 DEVELOPMENT_TEAM(Apple Developer Team ID)。" >&2
exit 1
}
./Scripts/fetch-libxray.sh
./Scripts/generate-project.sh
xcodebuild \
-project UCVLZonghengjia.xcodeproj \
-scheme UCVLZonghengjia \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro' \
DEVELOPMENT_TEAM="$DEVELOPMENT_TEAM" \
test
xcodebuild \
-project UCVLZonghengjia.xcodeproj \
-scheme UCVLZonghengjia \
-configuration Release \
-destination 'generic/platform=iOS' \
-archivePath build/UCVL-Zonghengjia-1.0.0.xcarchive \
DEVELOPMENT_TEAM="$DEVELOPMENT_TEAM" \
archive
if [ -n "${EXPORT_OPTIONS_PLIST:-}" ]; then
test -f "$EXPORT_OPTIONS_PLIST" || {
echo "EXPORT_OPTIONS_PLIST 指定的文件不存在。" >&2
exit 1
}
xcodebuild \
-exportArchive \
-archivePath build/UCVL-Zonghengjia-1.0.0.xcarchive \
-exportPath build/export \
-exportOptionsPlist "$EXPORT_OPTIONS_PLIST"
fi