skip to Main Content

I’m running a flutter project on physical device (IOS 17.5.1)

Xcode version: 15.4

MacOS version: Sonoma 14.5

Chip: Apple M3 Pro

The app runs perfectly on Simulators but when i attach it to physical device the app installed successfully but when it initialize and a white screen shows, Xcode fires an error like this:

enter image description here

What i have tried:

  1. sudo DevToolsSecurity -enable

  2. Restart both devices and changed cable

  3. Turn off Debug Executable

  4. Delete App and run again

  5. Clean build folder from Xcode

  6. flutter clean && flutter pub get && flutter run

I’ve been suffering from this issue for three days!

2

Answers


  1. In my case doing both these things in Edit Scheme -> Run fixed the issue:

    • unchecking ‘Debug executable’
    • adding an environment variable IDEPreferLogStreaming with value YES

    Edit Scheme

    Login or Signup to reply.
  2. In my case the problem was that i was using a distribution profile to debug an app on iPad.

    If you use manually managed signing this can happen, you simply have to create a development profile and use it to debug the app, if you use automatic signing this issue will probably never happen.

    Xcode is not sufficiently smart to warn you about that.

    Hope this can help someone

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