Repository navigation
fix(app): warn when setup.sh ios targets a physical device with OMI_DEV_HOST unset - #12091
Merged
kodjima33 merged 1 commit intoAug 24, 2026
Merged
Conversation
…EV_HOST unset Local dev backend binds to 127.0.0.1 by default. On a physical iOS device, 127.0.0.1 is the device itself, not the Mac — so a dev build silently hangs waiting for a backend it can never reach, with no indication why. The bind-host option (OMI_DEV_HOST/OMI_DEV_BIND_HOST) and two other setup blockers reported in the same issue were already fixed; this lands the last suggested remedy: detect a physical-device target and warn before the build starts. fixes #11534
kodjima33
deleted the
issues-improver/11534-warn-physical-device-loopback
branch
August 24, 2026 14:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
setup.sh iosbuilds adevflavor app pointing athttp://127.0.0.1:8000/bydefault. On a physical iOS device,
127.0.0.1resolves to the device itself,not the Mac running the harness — so the app hangs waiting for a backend it
can never reach, with no indication why.
Two other setup blockers reported in #11534 (the
npx firebase-toolsinstallprompt blocking headless, and the macOS Java stub passing the preflight check)
were already fixed on
main. The harness also already supports a bind-hostoverride (
OMI_DEV_HOST/OMI_DEV_BIND_HOST, documented indocs/doc/developer/AppSetup.mdx). What was still missing is the thirdremedy the reporter suggested: detect a physical-device target and warn
before the build starts, since the env var is easy to miss.
This adds that warning:
run_build_iosinapp/setup.shnow checks, fordevbuilds, whether the selected device is physical (flutter devices --machine's ownemulatorfield) andOMI_DEV_HOSTis unset, and prints awarning pointing at the fix instead of silently building a build that will
hang.
Testing
Extended
app/test/shell/ios_device_selection_test.sh(the existingbehavioral-test harness for this file's device-selection logic) with cases
for the new
_ios_device_is_physicalhelper — assertstruefor a physicaldevice id and
falsefor a simulator id, using the sameflutter devices --machinestub the file already uses.Also verified
bash -n app/setup.shandshellcheck app/setup.shproduce nonew warnings.
Product invariants affected
none
Failure class (fixes)
Failure-Class: none
fixes #11534
Auto-generated from issue feedback by the mini issues-improver — tested and merged.