Stabilize iOS/watchOS/tvOS apps and add cross-platform audit remediation
This commit is contained in:
23
scripts/smoke/build_tvos.sh
Executable file
23
scripts/smoke/build_tvos.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
LOG_FILE="${TMPDIR:-/tmp}/werkout_smoke_tv.log"
|
||||
|
||||
set -o pipefail
|
||||
xcodebuild -project WekoutThotViewer/WekoutThotViewer.xcodeproj \
|
||||
-scheme WekoutThotViewer \
|
||||
-configuration Debug \
|
||||
-destination 'generic/platform=tvOS' \
|
||||
-derivedDataPath /tmp/werkout_smoke_tv_dd \
|
||||
CODE_SIGNING_ALLOWED=NO \
|
||||
build 2>&1 | tee "$LOG_FILE"
|
||||
|
||||
FILTERED_ISSUES="$(rg -n "warning:|error:" "$LOG_FILE" | rg -v "Metadata extraction skipped. No AppIntents.framework dependency found." || true)"
|
||||
if [[ -n "$FILTERED_ISSUES" ]]; then
|
||||
echo "tvOS build produced warnings/errors. See $LOG_FILE" >&2
|
||||
echo "$FILTERED_ISSUES" | sed -n '1,120p' >&2
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user