skip to Main Content

I am new to Flutter iOS Development. I was trying to run my flutter app with three flavors dev, stage and prod. After running the application I am getting the following error.

Error (Xcode): Target aot_assembly_release failed: Exception: release/profile
builds are only supported for physical devices. attempted to build for
simulator.


Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.

I have searched a lot, but haven’t got any solutions over internet. It would be helpful if anyone will be able to help me with it.

PS – I want to run it on Simulator only. Thank You.

2

Answers


  1. When you build on the simulator. The debug mode for the scheme is unique. If use release mode, the issue above will appear.
    enter image description here

    Login or Signup to reply.
  2. In addition to the answer of "Cao Anh Dung".

    you need to make sure that youre using debug config here

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search