Prepares local beta-release inputs without touching local signing overrides:
- reads apps/ios/version.json and writes apps/ios/build/Version.xcconfig
- writes apps/ios/build/BetaRelease.xcconfig with canonical bundle IDs
- configures the beta build for relay-backed APNs registration
- regenerates apps/ios/OpenClaw.xcodeproj via xcodegen
EOF
}
local port="${BASH_REMATCH[2]:-}" if [[ -n "${port}" ]] && (( 10#${port} > 65535 )); then echo"Invalid OPENCLAW_PUSH_RELAY_BASE_URL: port must be between 1 and 65535." >&2
exit 1 fi
}
while [[ $# -gt 0 ]]; do
case "$1" in
--)
shift
;;
--build-number)
BUILD_NUMBER="${2:-}"
shift 2
;;
--team-id)
TEAM_ID="${2:-}"
shift 2
;;
-h|--help)
usage
exit 0
;;
*) echo"Unknown argument: $1" >&2
usage
exit 1
;;
esac done
if [[ -z "${BUILD_NUMBER}" ]]; then echo"Missing required --build-number." >&2
usage
exit 1 fi
if [[ -z "${TEAM_ID}" ]]; then
TEAM_ID="$(IOS_ALLOW_KEYCHAIN_TEAM_FALLBACK=1 bash "${TEAM_HELPER}")" fi
if [[ -z "${TEAM_ID}" ]]; then echo"Could not resolve Apple Team ID. Set IOS_DEVELOPMENT_TEAM or sign into Xcode." >&2
exit 1 fi
if [[ -z "${PUSH_RELAY_BASE_URL}" ]]; then echo"Missing OPENCLAW_PUSH_RELAY_BASE_URL (or IOS_PUSH_RELAY_BASE_URL) for beta relay registration." >&2
exit 1 fi
# `.xcconfig` treats `//` as a comment opener. Break the URL with a helper setting # so Xcode still resolves it back to `https://...` at build time.
PUSH_RELAY_BASE_URL_XCCONFIG="$(
printf '%s'"${PUSH_RELAY_BASE_URL}" \
| sed 's#//#$(OPENCLAW_URL_SLASH)$(OPENCLAW_URL_SLASH)#g'
)"
prepare_build_dir
(
cd "${ROOT_DIR}" && node --import tsx "${VERSION_SYNC_HELPER}" --check
)
IOS_VERSION="$(cd "${ROOT_DIR}" && node --import tsx "${IOS_VERSION_HELPER}" --field canonicalVersion)" if [[ -z "${IOS_VERSION}" ]]; then echo"Unable to resolve iOS version from ${ROOT_DIR}/apps/ios/version.json." >&2
exit 1 fi
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.