Skip to content

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

Closed

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.

Activity

  1. darshankawar commented on Mar 7, 2025

    @darshankawar
    Member

    @Quelaan1
    If you create a new Flutter project and then try to run it, does it work properly or still give you same error ?

    Try launching Xcode and selecting "Product > Run" to fix the problem:
    open ios/Runner.xcworkspace

    Did you also try this to see if it helps further ?

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 7, 2025
  3. Quelaan1 commented on Mar 7, 2025

    @Quelaan1
    Author

    Did you also try this to see if it helps further ?

    Yes, that'll just run the app from xcode. No hot reload nothing.

    Alternate step to develop:

    If I do these steps, then I can use hot reload etc because of attaching

    create a new Flutter project

    I'll try this now and let you know

  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 7, 2025
  5. Quelaan1 commented on Mar 7, 2025

    @Quelaan1
    Author

    I'll try this now and let you know

    Nope, same thing:

    tilak@Tilaks-MacBook-Pro my_first_flutter_project % 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...                         7.1s
    Xcode build done.                                           17.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...                                         7.1s
    Error launching application on Tilak’s iPhone.
    
  6. darshankawar commented on Mar 10, 2025

    @darshankawar
    Member

    Thanks for the update @Quelaan1
    It seems it could be due to combination of latest macOS version and iOS version you are trying to run. Is it only occuring while trying to run on iOS device ? If you select iOS simulator, does it work ?

  7. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 10, 2025
  8. Quelaan1 commented on Mar 25, 2025

    @Quelaan1
    Author

    @darshankawar Yes, it works with iOS simulator

  9. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 25, 2025
  10. darshankawar commented on Mar 26, 2025

    @darshankawar
    Member

    @Quelaan1
    I see that the device is wirelessly connected and then you are trying to select it to run your app. If you wired it and then run on it, does it give you same error ? Just trying to see and narrow down the use case.
    I did try with my iphone device connected wirelessly and with wired, but didn't face any issue.

  11. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 26, 2025
  12. Quelaan1 commented on Mar 26, 2025

    @Quelaan1
    Author

    Steps to reproduce:

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

    It's the same as I have mentioned. @darshankawar

  13. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 26, 2025
  14. darshankawar commented on Mar 26, 2025

    @darshankawar
    Member

    ah I see, sorry I missed it. I am unable to replicate this reported behavior, but based on the report and error shown, I'll keep the issue open for team's tracking.

  15. added
    platform-iosiOS applications specifically
    team-iosOwned by iOS platform team
    and removed
    in triagePresently being triaged by the triage team
    on Mar 26, 2025
  16. Quelaan1 commented on Mar 26, 2025

    @Quelaan1
    Author

    @darshankawar Thank you

  17. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    P1High-priority issues at the top of the work list
    on Mar 31, 2025
  18. added
    r: fixedIssue is closed as already fixed in a newer version
    on Apr 2, 2025
  19. github-actions commented on Apr 16, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  20. locked as resolved and limited conversation to collaborators on Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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