Skip to content

Error starting debug session in Xcode: Timed out waiting for CONFIGURATION_BUILD_DIR to update. #144218

@ChristineWasike

Description

@ChristineWasike

Steps to reproduce

1. Set this environment:

  • Physical iPhone 14 Pro, iOS 17.3.1.1, Available storage 131.3 GB out of 256GB Capacity
  • Xcode version 15.2 (15C500b)
  • macOS Sonoma version 14.2.1 (23C71)
  • Flutter Channel stable, 3.19.0
  • Dart SDK version: 3.3.0 (stable)

2. Run the app on VScode or the Terminal

3. Error:

Xcode is taking longer than expected to start debugging the app. Ensure the project is opened in Xcode.
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-001A15C936A0C01E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

Error launching application on iPhone.

Expected results

The app should run on the iPhone with no issues.

Note:

  • When I run the app from Xcode directly, the app runs.
  • When I run the same app on a physical iPhone X, iOS 16.7.5, Available storage 114.19 GB out of 256GB Capacity it runs fine.
  • When I build a new Flutter project and run the app, it runs just fine as well.

Actual results

Launching lib/main.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: xxxxxx
Xcode build done.                                           206.5s
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. Ensure the project is opened in Xcode.
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-001A15C936A0C01E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

Error launching application on iPhone.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration Screenshot 2024-02-27 at 13 04 36 Screenshot 2024-02-27 at 13 11 27 Screenshot 2024-02-27 at 13 11 39

Logs

Logs
Launching lib/main.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: ZR3QGWZA6A
Xcode build done.                                           206.5s
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. Ensure the project is opened in Xcode.
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-001A15C936A0C01E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

Error launching application on iPhone.

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.0, on macOS 14.2.1 23C71 darwin-arm64, locale
    en-KE)
[✓] Android toolchain - develop for Android devices (Android SDK version
    32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.86.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: buildBuilding flutter applications with the toole: OS-version specificAffects only some versions of the relevant operating systemplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions