[object Object]

← back to Homesonspec

auto-data-snapshot: 2026-08-07T09:05:06 (1 data files) — apps/mobile/scripts/build-ios-prod.exp

c052b3e29581d509bc2e216aa8125e281307f40b · 2026-08-07 09:07:01 -0700 · auto-commit-fleet

Files touched

Diff

commit c052b3e29581d509bc2e216aa8125e281307f40b
Author: auto-commit-fleet <steve@designerwallcoverings.com>
Date:   Fri Aug 7 09:07:01 2026 -0700

    auto-data-snapshot: 2026-08-07T09:05:06 (1 data files) — apps/mobile/scripts/build-ios-prod.exp
---
 apps/mobile/scripts/build-ios-prod.exp | 36 ++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/apps/mobile/scripts/build-ios-prod.exp b/apps/mobile/scripts/build-ios-prod.exp
new file mode 100644
index 00000000..e5912789
--- /dev/null
+++ b/apps/mobile/scripts/build-ios-prod.exp
@@ -0,0 +1,36 @@
+#!/usr/bin/expect -f
+# Drive `eas build --platform ios --profile production` through a pseudo-terminal
+# so the FIRST-TIME iOS signing-credential prompts (which eas refuses to answer in
+# non-interactive / `!`-piped mode) get answered. Accepts EAS's safe defaults:
+# reuse the existing team Distribution Certificate, EAS-managed provisioning profile,
+# EAS-managed APNs key (the alerts feature needs push). Cookie-backed Apple auth =
+# no password/2FA (same as device-create.exp). --no-wait: queue + return the URL.
+#
+# Usage: expect build-ios-prod.exp   (run from apps/mobile)
+
+set timeout 900
+log_user 1
+set ::env(EAS_BUILD_NO_EXPO_GO_WARNING) "true"
+
+spawn npx eas-cli build --platform ios --profile production --no-wait
+
+expect {
+  -re "Would you like to use"                 { sleep 1; send "\r"; exp_continue }
+  -re "log in to your Apple"                   { sleep 1; send "\r"; exp_continue }
+  -re "Apple ID:"                              { sleep 1; send "\r"; exp_continue }
+  -re "Distribution Certificate"               { sleep 1; send "\r"; exp_continue }
+  -re "[Pp]rovisioning [Pp]rofile"             { sleep 1; send "\r"; exp_continue }
+  -re "Push Notifications|APNs|Apple Push"     { sleep 1; send "\r"; exp_continue }
+  -re "Would you like to set up"               { sleep 1; send "\r"; exp_continue }
+  -re "\\(Y/n\\)|\\(y/N\\)"                     { sleep 1; send "\r"; exp_continue }
+  # Terminal states — stop looping once the build is queued or an error prints.
+  -re "Build details:.*https://expo.dev\\S+"   { }
+  -re "https://expo.dev/accounts/\\S+/builds/\\S+" { }
+  -re "Waiting for build"                      { }
+  -re "Error:"                                 { }
+  timeout                                       { }
+  eof                                           { }
+}
+sleep 2
+catch { send "\003" }
+expect eof

← cc61d3cf mobile(eas): capture ASC App ID 6798873898 — future eas subm  ·  back to Homesonspec  ·  mobile: App Store screenshot shot-list (6 shots, map-led, ca 170271c8 →