Repository navigation
.osascript returned non-JSON response: start | iOS #164772
Copy link
Copy link
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listplatform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
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:
- Reinstall mac, xcode, flutter
- Upgrade to latest flutter
I have attached flutter run --verbose file.
Steps to reproduce:
- flutter run to an iOS device - Doesn't matter wireless or wired.
Alternate step to develop:
- flutter run (it'll fail, but open xcode and xcode will continue and install the app)
- 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listplatform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Activity
darshankawar commentedon Mar 7, 2025
@Quelaan1
If you create a new Flutter project and then try to run it, does it work properly or still give you same error ?
Did you also try this to see if it helps further ?
Quelaan1 commentedon Mar 7, 2025
Yes, that'll just run the app from xcode. No hot reload nothing.
If I do these steps, then I can use hot reload etc because of attaching
I'll try this now and let you know
Quelaan1 commentedon Mar 7, 2025
Nope, same thing:
darshankawar commentedon Mar 10, 2025
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 ?
Quelaan1 commentedon Mar 25, 2025
@darshankawar Yes, it works with iOS simulator
darshankawar commentedon Mar 26, 2025
@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.
Quelaan1 commentedon Mar 26, 2025
It's the same as I have mentioned. @darshankawar
darshankawar commentedon Mar 26, 2025
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.
Quelaan1 commentedon Mar 26, 2025
@darshankawar Thank you
Trim any text before osascript JSON response (#166296)
github-actions commentedon Apr 16, 2025
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 -vand a minimal reproduction of the issue.Trim any text before osascript JSON response (flutter#166296)
Trim any text before osascript JSON response (flutter#166296)