Skip to content

error: Unable to read Dart source 'package:flutter/material.dart'. #10461

@Jack-Rouleau

Description

@Jack-Rouleau

Steps to Reproduce

Go through the macOS setup steps, make a parent directory include a space. i.e.: Flutter Test
Create a project using flutter create <app_name>

Logs

#flutter run

Launching lib/main.dart on iPhone 7 Plus in debug mode...
Running Xcode build...                                6.7s
CoreSimulatorBridge: Requesting installation of file:///Users/jrouleau/Documents/Work/Orange%20Friday/flutter/app/test_app/build/ios/Release-iphonesimulator/Runner.app/ with options: {
	    CFBundleIdentifier = "com.yourcompany.testApp";
	    PackageType = Developer;
	    SimulatorRootPath = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk";
	    SimulatorUserPath = "/Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data";
	}
	state->old_bundle: /Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data/Containers/Bundle/Application/EB7637E0-E550-4E49-8DDF-745A85211D7B/Runner.app
	state->new_bundle: /Users/jrouleau/Documents/Work/Orange Friday/flutter/app/test_app/build/ios/Release-iphonesimulator/Runner.app
	state->dst_bundle: /Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data/Library/Caches/com.apple.mobile.installd.staging/temp.AA0Z45/extracted/Payload//Runner.app, binaryDiff flag: FALSE
		dst_ipa: /Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data/Library/Caches/com.apple.mobile.installd.staging/temp.AA0Z45/extracted
	    "<LSApplicationProxy: 0x7fbe79706330> com.yourcompany.testApp file:///Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data/Containers/Bundle/Application/6AF518A6-4B0E-43BB-9F30-107D39B49378/Runner.app <com.yourcompany.testApp <installed >>"
	) {9817A53E-5025-488B-BFD8-54576C569128 304}
	    "<LSApplicationProxy: 0x7fea74d76c80> com.yourcompany.testApp file:///Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data/Containers/Bundle/Application/6AF518A6-4B0E-43BB-9F30-107D39B49378/Runner.app <com.yourcompany.testApp <installed >>"
	) {9817A53E-5025-488B-BFD8-54576C569128 304}
	    "<LSApplicationProxy: 0x7fea74c8b150> com.yourcompany.testApp file:///Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data/Containers/Bundle/Application/6AF518A6-4B0E-43BB-9F30-107D39B49378/Runner.app <com.yourcompany.testApp <installed >>"
	) {9817A53E-5025-488B-BFD8-54576C569128 300}
	    "<LSApplicationProxy: 0x7f996654fb50> com.yourcompany.testApp file:///Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data/Containers/Bundle/Application/6AF518A6-4B0E-43BB-9F30-107D39B49378/Runner.app <com.yourcompany.testApp <installed >>"
	) {9817A53E-5025-488B-BFD8-54576C569128 304}
	    "<LSApplicationProxy: 0x7fb18253c120> com.yourcompany.testApp file:///Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data/Containers/Bundle/Application/6AF518A6-4B0E-43BB-9F30-107D39B49378/Runner.app <com.yourcompany.testApp <installed >>"
	) {9817A53E-5025-488B-BFD8-54576C569128 304}
	    "<LSApplicationProxy: 0x7fc1d7473560> com.yourcompany.testApp file:///Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data/Containers/Bundle/Application/6AF518A6-4B0E-43BB-9F30-107D39B49378/Runner.app <com.yourcompany.testApp <installed >>"
	) {9817A53E-5025-488B-BFD8-54576C569128 304}
	    "<LSApplicationProxy: 0x7faf68629250> com.yourcompany.testApp file:///Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data/Containers/Bundle/Application/6AF518A6-4B0E-43BB-9F30-107D39B49378/Runner.app <com.yourcompany.testApp <installed >>"
	) {9817A53E-5025-488B-BFD8-54576C569128 304}
	    "<LSApplicationProxy: 0x7fea8c439560> com.yourcompany.testApp file:///Users/jrouleau/Library/Developer/CoreSimulator/Devices/FFF831FA-7C19-4B01-A261-C5D64A4C3D0B/data/Containers/Bundle/Application/6AF518A6-4B0E-43BB-9F30-107D39B49378/Runner.app <com.yourcompany.testApp <installed >>"
	) {9817A53E-5025-488B-BFD8-54576C569128 304}
CoreSimulatorBridge: Requesting launch of com.yourcompany.testApp with options: {
	    arguments =     (
	        "--enable-dart-profiling",
	        "--flx=/Users/jrouleau/Documents/Work/Orange Friday/flutter/app/test_app/build/app.flx",
	        "--dart-main=/Users/jrouleau/Documents/Work/Orange Friday/flutter/app/test_app/lib/main.dart",
	        "--packages=/Users/jrouleau/Documents/Work/Orange Friday/flutter/app/test_app/.packages",
	        "--enable-checked-mode",
	        "--observatory-port=8100",
	        "--diagnostic-port=8101"
	    );
	    environment =     {
	    };
	}
CoreSimulatorBridge: Beginning launch sequence for bundle 'com.yourcompany.testApp'
		retryTimeout: 120.000000 (default write com.apple.CoreSimulatorBridge LaunchRetryTimeout <value>)
		bootTimeout: 300.000000 (default write com.apple.CoreSimulatorBridge BootRetryTimeout <value>)
		bootLeeway: 120.000000 (default write com.apple.CoreSimulatorBridge BootLeeway <value>)
		Note: Use 'xcrun simctl spawn booted defaults write <domain> <key> <value>' to modify defaults in the booted Simulator device.
	Simulator booted at: 2017-06-02 19:16:24 +0000
	Current time: 2017-06-02 19:39:44 +0000
	Within boot leeway: NO
CoreSimulatorBridge: Launch attempt #0 for bundle 'com.yourcompany.testApp', have been trying to launch for 0 seconds. Modern launch services = YES
CoreSimulatorBridge: Got LSBundleProxy for 'com.yourcompany.testApp', sequenceNumber 304, cacheGUID 9817A53E-5025-488B-BFD8-54576C569128
CoreSimulatorBridge: [Common] [FBSSystemService][0x10e0] Sending request to open "com.yourcompany.testApp"
CoreSimulatorBridge: [Common] [FBSSystemService][0x10e0] Request successful: <FBSProcessHandle: 0x7fe07c614420; Runner:8686; valid: YES>
CoreSimulatorBridge: Launch successful for 'com.yourcompany.testApp'
You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2017-06-02 15:39:45.374 Runner[8686:43377] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
error: Unable to read Dart source '
error: Unable to read Dart source 'package:flutter/material.dart'.
You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2017-06-02 15:39:45.788 Runner[8687:43410] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
error: Unable to read Dart source 'package:flutter/material.dart'.
Error waiting for a debug connection: Exception: Timeout while attempting to retrieve Uri for Observatory
Error launching application on iPhone 7 Plus.

#flutter analyze

nalyzing /Users/jrouleau/Documents/Work/Orange Friday/flutter/app/test_app...
No issues found!
Ran in 4.3s

Flutter Doctor

[✓] Flutter (on Mac OS X 10.12.3 16D32, channel alpha)
    • Flutter at /Users/jrouleau/Documents/Work/Orange Friday/flutter/flutter
    • Framework revision 973304d5fb (2 weeks ago), 2017-05-18 17:31:57 -0700
    • Engine revision f99d3ef108
    • Tools Dart version 1.23.0-dev.11.11

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).
      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.

[✓] iOS toolchain - develop for iOS devices (Xcode 8.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 8.2.1, Build version 8C1002
    • ios-deploy 1.9.1
    • CocoaPods version 1.2.1

[✗] Android Studio (not installed)
    • Android Studio not found. Download from https://developer.android.com/studio/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2017.1.3)
    • Dart plugin version 171.4424.63
    • Flutter plugin version 13.1

[✓] Connected devices
    • iPhone 7 Plus • FFF831FA-7C19-4B01-A261-C5D64A4C3D0B • ios • iOS 10.2 (simulator)

Metadata

Metadata

Assignees

Labels

engineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions