flutter / flutter/flutter

Error executing osascript: -15

Open
#186,455 7 comments 0 reactions 0 assignees View on GitHub
P2 platform-ios t: xcode team-ios tool triaged-ios workaround available
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Running the default counting app by Flutter from VSCode or Antigravity, which opens XCode automatically. When leaving XCode open and rerunning the app one of the following error below happens. I need to close XCode before so that I can run the app again.

Is this happening to someone else as well?

### Actual results

App is not starting and gives an error message detailed in Logs.

### Logs

Logs

When I cancel it:
```console

Xcode build done. 8,9s

You may be prompted to give access to control Xcode. Flutter uses Xcode to run your app. If access is not allowed, you can change this through your Settings > Privacy & Security > Automation.

Xcode is taking longer than expected to start debugging the app. If the issue persists, try closing Xcode and re-running your Flutter command.

Error executing osascript: -15

Could not run build/ios/iphoneos/Runner.app on 00008120-001E3CEA18414032.

Try launching Xcode and selecting "Product > Run" to fix the problem:

open ios/Runner.xcworkspace

Application finished.

Exited.

```

When letting it run:
```console
Xcode build done. 4,7s
You may be prompted to give access to control Xcode. Flutter uses Xcode to run your app. If access is not allowed, you can change this through your Settings > Privacy & Security > Automation.
Xcode is taking longer than expected to start debugging the app. If the issue persists, try closing Xcode and re-running your Flutter command.
Error starting debug session in Xcode: Timed out waiting for CONFIGURATION_BUILD_DIR to update.
Could not run build/ios/iphoneos/Runner.app on 00008120-001E3CEA18414032.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace

Error launching application on iPad von x.
```

### Flutter Doctor output

Doctor output

```console

[✓] Flutter (Channel stable, 3.41.9, on macOS 26.5 25F71 darwin-arm64, locale de-DE) [258ms]
• Flutter version 3.41.9 on channel stable at /Users/wklausing/DEV/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 00b0c91f06 (2 weeks ago), 2026-04-29 10:03:19 -0700
• Engine revision 42d3d75a56
• Dart version 3.11.5
• DevTools version 2.54.2
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios,
cli-animations, enable-native-assets, omit-legacy-version-file, no-enable-lldb-debugging, enable-uiscene-migration

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [1.722ms]
• Android SDK at /Users/wklausing/Library/Android/sdk
• Emulator version 35.6.11.0 (build_id 13610412) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.5) [737ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17F42
• CocoaPods version 1.16.2

[✓] Chrome - develop for the web [4ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (3 available) [9,1s]
• iPad von x (mobile) • 00008120-001E3CEA18414032 • ios • iOS 26.5 23F77
• macOS (desktop) • macos • darwin-arm64 • macOS 26.5 25F71 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 147.0.7727.118

[✓] Network resources [580ms]
• All expected network resources are available.

• No issues found!

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.