Skip to content

flutter build ios-framework runtime crashes on simulators with debug builds #46125

@xster

Description

@xster

The stub debug App.framework has an x86_64 architecture but links macOS's /usr/lib/libSystem.B.dylib. Crashes when loading on simulator

dyld: Library not loaded: @rpath/App.framework/App
  Referenced from: /Users/.../Library/Developer/CoreSimulator/Devices/CB8FE155-8F9C-48EE-A8E7-773318A51146/data/Containers/Bundle/Application/C25C0857-CB0D-4050-9674-5799C61199CF/MyApp.app/MyApp
  Reason: no suitable image found.  Did find:
	/Users/.../Library/Developer/CoreSimulator/Devices/CB8FE155-8F9C-48EE-A8E7-773318A51146/data/Containers/Bundle/Application/C25C0857-CB0D-4050-9674-5799C61199CF/MyApp.app/Frameworks/App.framework/App: mach-o, but not built for iOS simulator

Building for iOS Simulator, but linking in dylib file (/Users/.../Projects/MyApp/Flutter/Debug/App.framework/App) built for macOS

We need to build the stub dylib specifically for the simulator.

Metadata

Metadata

Assignees

Labels

a: existing-appsIntegration with existing apps via the add-to-app flowc: crashStack traces logged to the consoleplatform-iosiOS applications specificallytoolAffects 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