Skip to content

Xcode 15 launch failure with iOS 17 physical device in debug mode "Could not call ptrace(PT_TRACE_ME): Operation not permitted. Cannot create a FlutterEngine instance in debug mode without Flutter tooling or Xcode." #136197

@NM4ik

Description

@NM4ik

Is there an existing issue for this?

Steps to reproduce

  • flutter channel master
  • flutter upgrade
  • ios -> pod install --repo-update
  • flutter clean
  • flutter pub get
  • flutter run (--debug)

Actual results

After updating iOS 17 and xCode 15, I can’t launch debug mode on a physical Apple device.

  • flutter channel master (Flutter 3.16.0-6.0.pre.45 • channel master)
  • flutter upgrade
  • ios -> pod install --repo-update
  • flutter clean
  • flutter pub get
  • flutter run (--debug)

and im running debug from vs code command-line and xcode

image
image
image
image

and sometime i got this notification
image

Logs

Logs
<!-- Paste your logs here -->

Flutter Doctor output

Doctor output
nikitamihajlov@Mac-mini-Nikita ios % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 3.16.0-6.0.pre.45, on macOS 14.0 23A344 darwin-arm64)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.83.0)
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: OS-version specificAffects only some versions of the relevant operating systemplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions