Skip to content

Running on iphone simulator with --local-engine requires using unopt #119523

@dcharkes

Description

@dcharkes

--local-engine=ios_debug_sim is not supported (is looking for a non-existing host_debug_sim).

$ flutter clean && flutter run -d iPhone --local-engine=ios_debug_sim --local-engine-src-path=$HOME/flt/engine/src --debug -v
...
[   +2 ms] No Flutter engine build found at /Users/dacoharkes/flt/engine/src/out/host_debug_sim.

--local-engine=ios_debug_sim_unopt is supported (with host_debug_unopt).

flutter clean && flutter run -d iPhone --local-engine=ios_debug_sim_unopt --local-engine-src-path=$HOME/flt/engine/src --debug -v
...
[        ] 💪 Running with sound null safety 💪

iPhone is a simulator:

$ flutter devices
...
iPhone 14 Pro (mobile)        • D8B3EC3D-DCE7-4FBC-83EB-1C0A0580FE76     • ios            •
com.apple.CoreSimulator.SimRuntime.iOS-16-1 (simulator)

Got some info from:

Possible cause:

String tmpBasename = localEngineBasename.replaceFirst('_sim_', '_');

The stripping of _sim doesn't happen because there is no _ after it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions