Skip to content

.osascript returned non-JSON response: start | iOS #164772

@Quelaan1

Description

@Quelaan1

I have been facing this issue for months. I had reinstalled macos multiple times, it works properly for sometime after reinstall then again same issue.

Fixes I have tried:

  1. Reinstall mac, xcode, flutter
  2. Upgrade to latest flutter

I have attached flutter run --verbose file.

flutter_run_output.txt

Steps to reproduce:

  1. flutter run to an iOS device - Doesn't matter wireless or wired.

Alternate step to develop:

  1. flutter run (it'll fail, but open xcode and xcode will continue and install the app)
  2. flutter attach -d device-id
flutter doctor -v
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.3.1 24D70 darwin-arm64, locale en-IN)
    • Flutter version 3.27.1 on channel stable at /Users/tilak/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 17025dd882 (3 months ago), 2024-12-17 03:23:09 +0900
    • Engine revision cb4b5fff73
    • Dart version 3.6.0
    • DevTools version 2.40.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
    • Android SDK at /Users/tilak/Library/Android/sdk
    • Platform android-35, build-tools 35.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

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

[✓] Android Studio (version 2024.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.4.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 243.23654.44

[✓] Connected device (4 available)
    • Tilak’s iPhone (mobile)         • 00008120-000814860131A01E • ios            • iOS 18.3.1 22D72
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 15.3.1 24D70 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 15.3.1 24D70 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 134.0.6998.45

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

• No issues found!
flutter run
Connected devices:
macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.3.1 24D70 darwin-arm64
Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.3.1 24D70 darwin-arm64
Chrome (web)                    • chrome                • web-javascript • Google Chrome 134.0.6998.45

Wirelessly connected devices:
Tilak’s iPhone (mobile) • 00008120-000814860131A01E • ios • iOS 18.3.1 22D72

[1]: macOS (macos)
[2]: Mac Designed for iPad (mac-designed-for-ipad)
[3]: Chrome (chrome)
[4]: Tilak’s iPhone (00008120-000814860131A01E)
Please choose one (or "q" to quit): 4
Launching lib/main.dart on Tilak’s iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: DS9S458A25
Running Xcode build...                                                  
 └─Compiling, linking and signing...                         8.3s
Xcode build done.                                           31.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.
osascript returned non-JSON response: start process_extensions{"status":true,"errorMessage":null,"debugResult":{"completed":false,"status":"running","errorMessage":null}}
Could not run build/ios/iphoneos/Runner.app on 00008120-000814860131A01E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

Installing and launching...                                        11.9s
Error launching application on Tilak’s iPhone.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listplatform-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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions