Repository navigation
Description
The 1.17.0 / 11700 build now on TestFlight has no Mapbox token in it. The map is a headline feature of the app and it is dead in that build. Google sign-in is very likely broken too.
Evidence — from the shipped binary, not from config
I pulled the artifact EAS produced (pUsq0BkG….ipa, 38 MB) apart and scanned the whole .app:
mapbox token pk.* ABSENT everywhere
mapbox token sk.* ABSENT everywhere
google client id ABSENT everywhere
Info.plist:
MBXAccessToken ABSENT
RNMapboxMapsDownloadToken ABSENT
GIDClientID ABSENT
supabase url (auth.scaffald.com) PRESENT <- declared in eas.json
posthog host (app.posthog.com) PRESENT <- declared in eas.json
CFBundleShortVersionString 1.17.0
CFBundleVersion 11700
The pattern is exact: everything eas.json declares arrived; nothing else did.
One thing that looks like a counter-example is not. com.googleusercontent.apps.163454683152-… is registered as a URL scheme — but that is the hardcoded fallback at app.config.ts:378, not proof that env arrived. The client IDs the JS side actually needs are absent.
Cause
.env.production is gitignored. It never reaches the EAS worker, so the dotenv.config() in app.config.ts finds nothing there. Only two sources reach a cloud build:
- the
envblock of the profile ineas.json - EAS environment variables (
eas env:create --environment production)
EAS currently holds only APPLE_SECRET, POSTHOG_KEY_PROD, RESEND_API_KEY for production.
Why nobody caught it
scripts/ship-ios.sh asserted the opposite in its own comment — "the rest (Mapbox, Google OAuth, redirect URIs) come from .env.production at build time". So it read that file, confirmed four variables, live-pinged the Mapbox token and got a 200, printed a row of ticks, and then shipped a binary containing none of them.
A check that is confident and wrong is worse than no check. I ran it before shipping, believed it, and reported the build as verified.
#687 rewrites the check to ask EAS what the build will actually see, and to fail with the exact remediation command per variable.
Remediation — needs a human
These are API tokens, so registering them is not something to automate away into a script's side effects. Values are in .env.production in the primary checkout:
cd apps/scaffald
pnpm exec eas env:create --environment production \
--name EXPO_PUBLIC_MAPBOX_TOKEN --value '<value>' --visibility sensitive
pnpm exec eas env:create --environment production \
--name EXPO_PUBLIC_GOOGLE_IOS_CLIENT_ID --value '<value>' --visibility sensitive
pnpm exec eas env:create --environment production \
--name EXPO_PUBLIC_GOOGLE_IOS_SCHEME --value '<value>' --visibility sensitive
pnpm exec eas env:create --environment production \
--name EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID --value '<value>' --visibility sensitiveAcceptance
- The four variables registered in the EAS
productionenvironment -
pnpm ship:ios --no-buildpasses on its own merits - A rebuild produced and the binary re-inspected —
MBXAccessTokenpresent inInfo.plist. Config review is what missed this; only the artifact settles it. - That build replaces
11700on TestFlight (bump to1.17.1, since11700is spent) - Check whether the same gap affects the web deploy, which reads the same variables by a different route
Scope
Android is affected identically — the profile env is shared, so a Play build today would ship the same way. I cancelled the first Android build (41d6ea5b) on discovering this rather than spend minutes on an artifact that could not be trusted.
Activity
thinkclay commentedon Sep 1, 2026
Web is not affected. Checked rather than assumed — one of the acceptance items above, now answerable.
scripts/deploy-web-eas.sh:94builds the web bundle locally:so
.env.productionis loaded at export time on the developer's machine, and theEXPO_PUBLIC_*values are baked into the bundle before anything is uploaded.Verified against the live site by downloading what scaffald.com actually serves (17 MB of JS) and scanning it — presence only:
So the asymmetry is precise, and it is the whole bug:
.env.production?dotenv -eThe web app has been fine this whole time, which is part of why this went unnoticed — the map works when you check it in a browser.
Ticking that box; the native items stand.
chore(deps): align 22 SDK 56 packages with what expo expects (#689)
fix(build): the Mapbox download token must not fall back to the publi…
thinkclay commentedon Sep 1, 2026
Fixed and verified from the binary, which is what missed it the first time.
1.17.1 / 11701(builda57c5a09), same inspection as before:RNMapboxMapsDownloadTokenis now absent from Info.plist, and that is correct — see #694; it is a build-time credential that should never have been sourced from the public runtime token, and should not ship in the app.It was not a clean landing
Registering the four variables broke both native builds immediately — iOS at Install pods, Android at Run gradlew. Making
EXPO_PUBLIC_MAPBOX_TOKENreach the worker also populatedRNMapboxMapsDownloadToken, which fell back to it. Asked Mapbox directly:An absent download token works (the 10.1.x SDK resolves unauthenticated); a wrong one 403s. Every green build up to 11700 was relying on that fallback never firing. #694 removes it.
Worth recording:
ship-ios.shhad been warningMAPBOX_DOWNLOADS_TOKENwas missing the whole time. The warning was accurate — it described a latent problem, and I read past it twice as noise.Closing. #509 still wants a real
sk.token with DOWNLOADS:READ, but nothing is blocked on it today.fix(native): the map was black in every iOS release, Office tables th…