flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.18k stars 27.46k forks source link

Xcode fails build with 'Error: Couldn't resolve the package...' #99332

Closed jimmyff closed 2 years ago

jimmyff commented 2 years ago

Xcode is failing with the following error:

Error: Couldn't resolve the package 'material_color_utilities' in 'package:material_color_utilities/material_color_utilities.dart'.
../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart

This is a production app that is currently live on the app store however has been upgraded to support null saftey.

Xcode build error logs ``` /bin/sh -c /Users/jimmyff/esc_app/ios/build/Runner.build/Profile-iphoneos/Runner.build/Script-9740EEB61CF901F6004384FC.sh Error: Couldn't resolve the package 'material_color_utilities' in 'package:material_color_utilities/material_color_utilities.dart'. ../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:7:8: Error: Not found: 'package:material_color_utilities/material_color_utilities.dart' import 'package:material_color_utilities/material_color_utilities.dart'; ^ ../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:201:11: Error: 'Scheme' isn't a type. final Scheme scheme; ^^^^^^ ../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:204:18: Error: Undefined name 'Scheme'. scheme = Scheme.light(seedColor.value); ^^^^^^ ../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:207:18: Error: Undefined name 'Scheme'. scheme = Scheme.dark(seedColor.value); ^^^^^^ ../.pub-cache/hosted/pub.dartlang.org/platform-3.0.0/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'. io.Platform.packageRoot; // ignore: deprecated_member_use ^^^^^^^^^^^ Unhandled exception: FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Amaterial_color_utilities%2Fmaterial_color_utilities.dart; message=StandardFileSystem only supports file:* and data:* URIs) #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7) #1 asFileUri (package:vm/kernel_front_end.dart:623:37) #2 writeDepfile (package:vm/kernel_front_end.dart:763:21) #3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:586:9) #4 starter (package:flutter_frontend_server/server.dart:85:12) #5 main (file:///opt/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:24) Failed to package /Users/jimmyff/esc_app. Command PhaseScriptExecution failed with a nonzero exit code ```
Flutter doctor -v output ``` [✓] Flutter (Channel stable, 2.10.2, on macOS 12.2.1 21D62 darwin-x64, locale en-GB) • Flutter version 2.10.2 at /Users/jimmyff/flutter-sdk • Upstream repository https://github.com/flutter/flutter.git • Framework revision 097d3313d8 (10 days ago), 2022-02-18 19:33:08 -0600 • Engine revision a83ed0e5e3 • Dart version 2.16.1 • DevTools version 2.9.2 [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at /Users/jimmyff/Library/Android/sdk • Platform android-31, build-tools 29.0.3 • Java binary at: /Applications/Development/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 13.2.1) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.11.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.1) • Android Studio at /Applications/Development/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 11.0.11+0-b60-7590822) [!] IntelliJ IDEA Ultimate Edition (version 2017.2) • IntelliJ at /Applications/Development/IntelliJ IDEA.app ✗ Flutter plugin version 15.1 - the recommended minimum version is 16.0.0 • Dart plugin version 172.3317.48 • For information about installing plugins, see https://flutter.dev/intellij-setup/#installing-the-plugins [✓] IntelliJ IDEA Ultimate Edition (version EAP IU-172.1909.2) • IntelliJ at /Applications/Development/IntelliJ IDEA 2017.1.2 EAP.app • 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 [✓] VS Code (version 1.64.2) • VS Code at /Applications/Development/Visual Studio Code.app/Contents • Flutter extension version 3.34.0 [✓] Connected device (2 available) • James’s iPhone (mobile) • 00008020-001A0D811A78002E • ios • iOS 14.4 18D52 • Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.109 [✓] HTTP Host Availability • All required HTTP hosts are available ```

Any insight would be much appreciated! Thanks

danagbemava-nc commented 2 years ago

Hi @jimmyff, can you check if any of your dependencies are out of date and upgrade them? You can check using

flutter pub outdated.

Please also provide the full verbose logs of the command you experienced this error with.

Thank you

jimmyff commented 2 years ago

Yep, done that, all package major versions are latest:

Showing outdated packages.
[*] indicates versions that are not the latest available.

Package Name              Current  Upgradable  Resolvable  Latest  

direct dependencies: all up-to-date.

dev_dependencies: all up-to-date.

transitive dependencies: 
js                        *0.6.3   *0.6.3      *0.6.3      0.6.4   
material_color_utilities  *0.1.3   *0.1.3      *0.1.3      0.1.4   
path                      *1.8.0   *1.8.0      *1.8.0      1.8.1   
source_span               *1.8.1   *1.8.1      *1.8.1      1.8.2   
vector_math               *2.1.1   *2.1.1      *2.1.1      2.1.2   

transitive dev_dependencies:
test_api                  *0.4.8   *0.4.8      *0.4.8      0.4.9   

Just did a fresh build after doing this and reinstalling pods:


Error: Couldn't resolve the package 'material_color_utilities' in 'package:material_color_utilities/material_color_utilities.dart'.
../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:7:8: Error: Not found: 'package:material_color_utilities/material_color_utilities.dart'
import 'package:material_color_utilities/material_color_utilities.dart';
       ^
../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:201:11: Error: 'Scheme' isn't a type.
    final Scheme scheme;
          ^^^^^^
../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:204:18: Error: Undefined name 'Scheme'.
        scheme = Scheme.light(seedColor.value);
                 ^^^^^^
../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:207:18: Error: Undefined name 'Scheme'.
        scheme = Scheme.dark(seedColor.value);
                 ^^^^^^
../.pub-cache/hosted/pub.dartlang.org/platform-3.0.0/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
      io.Platform.packageRoot; // ignore: deprecated_member_use
                  ^^^^^^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Amaterial_color_utilities%2Fmaterial_color_utilities.dart; message=StandardFileSystem only supports file:* and data:* URIs)
#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
#1      asFileUri (package:vm/kernel_front_end.dart:623:37)
#2      writeDepfile (package:vm/kernel_front_end.dart:763:21)
<asynchronous suspension>
#3      FrontendCompiler.compile (package:frontend_server/frontend_server.dart:586:9)
<asynchronous suspension>
#4      starter (package:flutter_frontend_server/server.dart:85:12)
<asynchronous suspension>
#5      main (file:///opt/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:24)
<asynchronous suspension>
Failed to package /Users/jimmyff/esc_app.
danagbemava-nc commented 2 years ago

Hmm, @jimmyff, can you check if you have this issue with the default flutter create project?

If you do, I suspect there might be an issue with your pub cache.

Can you also provide your pubspec.yaml and pubspec.lock?

jimmyff commented 2 years ago

Hey @danagbemava-nc thanks for the input, I've just created a new project and it launched okay through xcode.

pubspec.yaml ```yaml name: mobile description: ESCP # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43 # followed by an optional build number separated by a +. # Both the version and the builder number may be overridden in flutter # build by specifying --build-name and --build-number, respectively. # In Android, build-name is used as versionName while build-number used as versionCode. # Read more about Android versioning at https://developer.android.com/studio/publish/versioning # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html version: 3.0.6+10078 publish_to: none environment: sdk: ">=2.12.0 <3.0.0" dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.4 flutter_image: ^4.1.0 flutter_redux: ^0.8.2 redux: ^5.0.0 redux_logging: ^0.5.0 page_transition: ^2.0.4 path_provider: ^2.0.8 url_launcher: ^6.0.18 share_plus: ^3.0.4 smooth_page_indicator: ^1.0.0+2 # Prerelease: 0.3.0-nullsafety.0 flutter_markdown: ^0.6.9 intl: ^0.17.0 in_app_purchase: ^2.0.1 package_info: ^2.0.2 shared_preferences: ^2.0.12 implicitly_animated_reorderable_list: ^0.4.2 # authentication & membership firebase_core: ^1.11.0 # firebase_remote_config: ^0.9.0-dev.0 firebase_auth: ^3.3.5 firebase_analytics: ^9.0.5 cloud_firestore: ^3.1.6 # firebase_admob: ^0.9.1+3 google_mobile_ads: ^1.0.1 # Not compatible with youtube_player_iframe: ^1.2 algolia: ^1.0.4 # youtube_player_iframe: ^1.2.0+2 youtube_plyr_iframe: ^2.0.7 google_sign_in: ^5.2.3 # This needs changing back to the main package once packing info resoved in_app_review: ^2.0.4 confetti: ^0.6.0 core: path: ../esc_core/ material_design_icons_flutter: ^5.0.6595 # Does not support null safety: # esys_flutter_share: ^1.0.2 # flutter_page_transition: ^0.1.6 dependency_overrides: # youtube_player_iframe: # git: # url: https://github.com/jimmyff/youtube_player_flutter.git # path: packages/youtube_player_iframe # markdown etc require this... args: ^2.0.0 dev_dependencies: # Nightmare : https://github.com/dart-lang/intl_translation/issues/134 # intl_translation: ^0.17.10+1 lints: ^1.0.1 flutter_test: sdk: flutter built_value_generator: ^8.1.4 build_runner: ^2.1.7 # build_web_compilers: any # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter. flutter: uses-material-design: true fonts: - family: Think Big fonts: - asset: assets/fonts/Think_Big.ttf assets: - assets/branding/logo_1024.png - assets/branding/icon_1024.png - assets/branding/glyph_1024.png - assets/documents/privacyPolicy.md - assets/documents/terms.md - assets/blank.png - assets/flags/CZE.png - assets/flags/ALB.png - assets/flags/AND.png - assets/flags/ARM.png - assets/flags/AUS.png - assets/flags/AUT.png - assets/flags/AZE.png - assets/flags/BEL.png - assets/flags/BGR.png - assets/flags/BIH.png - assets/flags/BLR.png - assets/flags/CHE.png - assets/flags/CYP.png - assets/flags/CZE.png - assets/flags/DEU.png - assets/flags/DNK.png - assets/flags/ESP.png - assets/flags/EST.png - assets/flags/FIN.png - assets/flags/FRA.png - assets/flags/GBR.png - assets/flags/GEO.png - assets/flags/GRC.png - assets/flags/HRV.png - assets/flags/HUN.png - assets/flags/IRL.png - assets/flags/ISL.png - assets/flags/ISR.png - assets/flags/ITA.png - assets/flags/LBN.png - assets/flags/LTU.png - assets/flags/LUX.png - assets/flags/LVA.png - assets/flags/MAR.png - assets/flags/MCO.png - assets/flags/MDA.png - assets/flags/MKD.png - assets/flags/MLT.png - assets/flags/MNE.png - assets/flags/NLD.png - assets/flags/NOR.png - assets/flags/POL.png - assets/flags/PRT.png - assets/flags/ROU.png - assets/flags/RUS.png - assets/flags/SMR.png - assets/flags/SRB.png - assets/flags/SRB+MNE.png - assets/flags/SVK.png - assets/flags/SVN.png - assets/flags/SWE.png - assets/flags/TUR.png - assets/flags/UKR.png - assets/flags/YUG.png ```
pubspec.lock ```yaml # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: _fe_analyzer_shared: dependency: transitive description: name: _fe_analyzer_shared url: "https://pub.dartlang.org" source: hosted version: "33.0.0" algolia: dependency: "direct main" description: name: algolia url: "https://pub.dartlang.org" source: hosted version: "1.0.4" analyzer: dependency: transitive description: name: analyzer url: "https://pub.dartlang.org" source: hosted version: "3.1.0" args: dependency: "direct overridden" description: name: args url: "https://pub.dartlang.org" source: hosted version: "2.3.0" asn1lib: dependency: transitive description: name: asn1lib url: "https://pub.dartlang.org" source: hosted version: "1.0.3" async: dependency: transitive description: name: async url: "https://pub.dartlang.org" source: hosted version: "2.8.2" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.dartlang.org" source: hosted version: "2.1.0" build: dependency: transitive description: name: build url: "https://pub.dartlang.org" source: hosted version: "2.2.1" build_config: dependency: transitive description: name: build_config url: "https://pub.dartlang.org" source: hosted version: "1.0.0" build_daemon: dependency: transitive description: name: build_daemon url: "https://pub.dartlang.org" source: hosted version: "3.0.1" build_resolvers: dependency: transitive description: name: build_resolvers url: "https://pub.dartlang.org" source: hosted version: "2.0.6" build_runner: dependency: "direct dev" description: name: build_runner url: "https://pub.dartlang.org" source: hosted version: "2.1.7" build_runner_core: dependency: transitive description: name: build_runner_core url: "https://pub.dartlang.org" source: hosted version: "7.2.3" built_collection: dependency: transitive description: name: built_collection url: "https://pub.dartlang.org" source: hosted version: "5.1.1" built_value: dependency: transitive description: name: built_value url: "https://pub.dartlang.org" source: hosted version: "8.1.4" built_value_generator: dependency: "direct dev" description: name: built_value_generator url: "https://pub.dartlang.org" source: hosted version: "8.1.4" characters: dependency: transitive description: name: characters url: "https://pub.dartlang.org" source: hosted version: "1.2.0" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted version: "1.3.1" checked_yaml: dependency: transitive description: name: checked_yaml url: "https://pub.dartlang.org" source: hosted version: "2.0.1" cli_util: dependency: transitive description: name: cli_util url: "https://pub.dartlang.org" source: hosted version: "0.3.5" clock: dependency: transitive description: name: clock url: "https://pub.dartlang.org" source: hosted version: "1.1.0" cloud_firestore: dependency: "direct main" description: name: cloud_firestore url: "https://pub.dartlang.org" source: hosted version: "3.1.6" cloud_firestore_platform_interface: dependency: transitive description: name: cloud_firestore_platform_interface url: "https://pub.dartlang.org" source: hosted version: "5.4.11" cloud_firestore_web: dependency: transitive description: name: cloud_firestore_web url: "https://pub.dartlang.org" source: hosted version: "2.6.6" code_builder: dependency: transitive description: name: code_builder url: "https://pub.dartlang.org" source: hosted version: "4.1.0" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted version: "1.15.0" confetti: dependency: "direct main" description: name: confetti url: "https://pub.dartlang.org" source: hosted version: "0.6.0" convert: dependency: transitive description: name: convert url: "https://pub.dartlang.org" source: hosted version: "3.0.1" core: dependency: "direct main" description: path: "../esc_core" relative: true source: path version: "1.0.0" crypto: dependency: transitive description: name: crypto url: "https://pub.dartlang.org" source: hosted version: "3.0.1" cupertino_icons: dependency: "direct main" description: name: cupertino_icons url: "https://pub.dartlang.org" source: hosted version: "1.0.4" dart_style: dependency: transitive description: name: dart_style url: "https://pub.dartlang.org" source: hosted version: "2.2.1" encrypt: dependency: transitive description: name: encrypt url: "https://pub.dartlang.org" source: hosted version: "5.0.1" fake_async: dependency: transitive description: name: fake_async url: "https://pub.dartlang.org" source: hosted version: "1.2.0" ffi: dependency: transitive description: name: ffi url: "https://pub.dartlang.org" source: hosted version: "1.1.2" file: dependency: transitive description: name: file url: "https://pub.dartlang.org" source: hosted version: "6.1.2" firebase_analytics: dependency: "direct main" description: name: firebase_analytics url: "https://pub.dartlang.org" source: hosted version: "9.0.5" firebase_analytics_platform_interface: dependency: transitive description: name: firebase_analytics_platform_interface url: "https://pub.dartlang.org" source: hosted version: "3.0.4" firebase_analytics_web: dependency: transitive description: name: firebase_analytics_web url: "https://pub.dartlang.org" source: hosted version: "0.4.0+5" firebase_auth: dependency: "direct main" description: name: firebase_auth url: "https://pub.dartlang.org" source: hosted version: "3.3.5" firebase_auth_platform_interface: dependency: transitive description: name: firebase_auth_platform_interface url: "https://pub.dartlang.org" source: hosted version: "6.1.10" firebase_auth_web: dependency: transitive description: name: firebase_auth_web url: "https://pub.dartlang.org" source: hosted version: "3.3.6" firebase_core: dependency: "direct main" description: name: firebase_core url: "https://pub.dartlang.org" source: hosted version: "1.11.0" firebase_core_platform_interface: dependency: transitive description: name: firebase_core_platform_interface url: "https://pub.dartlang.org" source: hosted version: "4.2.3" firebase_core_web: dependency: transitive description: name: firebase_core_web url: "https://pub.dartlang.org" source: hosted version: "1.5.3" fixnum: dependency: transitive description: name: fixnum url: "https://pub.dartlang.org" source: hosted version: "1.0.0" flutter: dependency: "direct main" description: flutter source: sdk version: "0.0.0" flutter_image: dependency: "direct main" description: name: flutter_image url: "https://pub.dartlang.org" source: hosted version: "4.1.0" flutter_inappwebview: dependency: transitive description: name: flutter_inappwebview url: "https://pub.dartlang.org" source: hosted version: "5.3.2" flutter_localizations: dependency: "direct main" description: flutter source: sdk version: "0.0.0" flutter_markdown: dependency: "direct main" description: name: flutter_markdown url: "https://pub.dartlang.org" source: hosted version: "0.6.9" flutter_redux: dependency: "direct main" description: name: flutter_redux url: "https://pub.dartlang.org" source: hosted version: "0.8.2" flutter_test: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" flutter_web_plugins: dependency: transitive description: flutter source: sdk version: "0.0.0" frontend_server_client: dependency: transitive description: name: frontend_server_client url: "https://pub.dartlang.org" source: hosted version: "2.1.2" glob: dependency: transitive description: name: glob url: "https://pub.dartlang.org" source: hosted version: "2.0.2" google_mobile_ads: dependency: "direct main" description: name: google_mobile_ads url: "https://pub.dartlang.org" source: hosted version: "1.0.1" google_sign_in: dependency: "direct main" description: name: google_sign_in url: "https://pub.dartlang.org" source: hosted version: "5.2.3" google_sign_in_platform_interface: dependency: transitive description: name: google_sign_in_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.1.1" google_sign_in_web: dependency: transitive description: name: google_sign_in_web url: "https://pub.dartlang.org" source: hosted version: "0.10.0+4" graphs: dependency: transitive description: name: graphs url: "https://pub.dartlang.org" source: hosted version: "2.1.0" http: dependency: transitive description: name: http url: "https://pub.dartlang.org" source: hosted version: "0.13.4" http_multi_server: dependency: transitive description: name: http_multi_server url: "https://pub.dartlang.org" source: hosted version: "3.0.1" http_parser: dependency: transitive description: name: http_parser url: "https://pub.dartlang.org" source: hosted version: "4.0.0" implicitly_animated_reorderable_list: dependency: "direct main" description: name: implicitly_animated_reorderable_list url: "https://pub.dartlang.org" source: hosted version: "0.4.2" in_app_purchase: dependency: "direct main" description: name: in_app_purchase url: "https://pub.dartlang.org" source: hosted version: "2.0.1" in_app_purchase_android: dependency: transitive description: name: in_app_purchase_android url: "https://pub.dartlang.org" source: hosted version: "0.2.2+1" in_app_purchase_platform_interface: dependency: transitive description: name: in_app_purchase_platform_interface url: "https://pub.dartlang.org" source: hosted version: "1.3.1" in_app_purchase_storekit: dependency: transitive description: name: in_app_purchase_storekit url: "https://pub.dartlang.org" source: hosted version: "0.2.1" in_app_review: dependency: "direct main" description: name: in_app_review url: "https://pub.dartlang.org" source: hosted version: "2.0.4" in_app_review_platform_interface: dependency: transitive description: name: in_app_review_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.0.3" intl: dependency: "direct main" description: name: intl url: "https://pub.dartlang.org" source: hosted version: "0.17.0" io: dependency: transitive description: name: io url: "https://pub.dartlang.org" source: hosted version: "1.0.3" js: dependency: transitive description: name: js url: "https://pub.dartlang.org" source: hosted version: "0.6.3" json_annotation: dependency: transitive description: name: json_annotation url: "https://pub.dartlang.org" source: hosted version: "4.4.0" lints: dependency: "direct dev" description: name: lints url: "https://pub.dartlang.org" source: hosted version: "1.0.1" logging: dependency: transitive description: name: logging url: "https://pub.dartlang.org" source: hosted version: "1.0.2" markdown: dependency: transitive description: name: markdown url: "https://pub.dartlang.org" source: hosted version: "4.0.1" matcher: dependency: transitive description: name: matcher url: "https://pub.dartlang.org" source: hosted version: "0.12.11" material_color_utilities: dependency: transitive description: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted version: "0.1.3" material_design_icons_flutter: dependency: "direct main" description: name: material_design_icons_flutter url: "https://pub.dartlang.org" source: hosted version: "5.0.6595" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted version: "1.7.0" mime: dependency: transitive description: name: mime url: "https://pub.dartlang.org" source: hosted version: "1.0.1" package_config: dependency: transitive description: name: package_config url: "https://pub.dartlang.org" source: hosted version: "2.0.2" package_info: dependency: "direct main" description: name: package_info url: "https://pub.dartlang.org" source: hosted version: "2.0.2" page_transition: dependency: "direct main" description: name: page_transition url: "https://pub.dartlang.org" source: hosted version: "2.0.4" path: dependency: transitive description: name: path url: "https://pub.dartlang.org" source: hosted version: "1.8.0" path_provider: dependency: "direct main" description: name: path_provider url: "https://pub.dartlang.org" source: hosted version: "2.0.8" path_provider_android: dependency: transitive description: name: path_provider_android url: "https://pub.dartlang.org" source: hosted version: "2.0.11" path_provider_ios: dependency: transitive description: name: path_provider_ios url: "https://pub.dartlang.org" source: hosted version: "2.0.7" path_provider_linux: dependency: transitive description: name: path_provider_linux url: "https://pub.dartlang.org" source: hosted version: "2.1.5" path_provider_macos: dependency: transitive description: name: path_provider_macos url: "https://pub.dartlang.org" source: hosted version: "2.0.5" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.0.3" path_provider_windows: dependency: transitive description: name: path_provider_windows url: "https://pub.dartlang.org" source: hosted version: "2.0.5" pedantic: dependency: transitive description: name: pedantic url: "https://pub.dartlang.org" source: hosted version: "1.11.1" platform: dependency: transitive description: name: platform url: "https://pub.dartlang.org" source: hosted version: "3.1.0" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.1.2" pointycastle: dependency: transitive description: name: pointycastle url: "https://pub.dartlang.org" source: hosted version: "3.5.0" pool: dependency: transitive description: name: pool url: "https://pub.dartlang.org" source: hosted version: "1.5.0" process: dependency: transitive description: name: process url: "https://pub.dartlang.org" source: hosted version: "4.2.4" pub_semver: dependency: transitive description: name: pub_semver url: "https://pub.dartlang.org" source: hosted version: "2.1.0" pubspec_parse: dependency: transitive description: name: pubspec_parse url: "https://pub.dartlang.org" source: hosted version: "1.2.0" quiver: dependency: transitive description: name: quiver url: "https://pub.dartlang.org" source: hosted version: "3.0.1+1" redux: dependency: "direct main" description: name: redux url: "https://pub.dartlang.org" source: hosted version: "5.0.0" redux_logging: dependency: "direct main" description: name: redux_logging url: "https://pub.dartlang.org" source: hosted version: "0.5.0" share_plus: dependency: "direct main" description: name: share_plus url: "https://pub.dartlang.org" source: hosted version: "3.0.4" share_plus_linux: dependency: transitive description: name: share_plus_linux url: "https://pub.dartlang.org" source: hosted version: "2.0.4" share_plus_macos: dependency: transitive description: name: share_plus_macos url: "https://pub.dartlang.org" source: hosted version: "2.0.2" share_plus_platform_interface: dependency: transitive description: name: share_plus_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.0.1" share_plus_web: dependency: transitive description: name: share_plus_web url: "https://pub.dartlang.org" source: hosted version: "2.0.4" share_plus_windows: dependency: transitive description: name: share_plus_windows url: "https://pub.dartlang.org" source: hosted version: "2.0.3" shared_preferences: dependency: "direct main" description: name: shared_preferences url: "https://pub.dartlang.org" source: hosted version: "2.0.12" shared_preferences_android: dependency: transitive description: name: shared_preferences_android url: "https://pub.dartlang.org" source: hosted version: "2.0.10" shared_preferences_ios: dependency: transitive description: name: shared_preferences_ios url: "https://pub.dartlang.org" source: hosted version: "2.0.9" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux url: "https://pub.dartlang.org" source: hosted version: "2.0.4" shared_preferences_macos: dependency: transitive description: name: shared_preferences_macos url: "https://pub.dartlang.org" source: hosted version: "2.0.2" shared_preferences_platform_interface: dependency: transitive description: name: shared_preferences_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.0.0" shared_preferences_web: dependency: transitive description: name: shared_preferences_web url: "https://pub.dartlang.org" source: hosted version: "2.0.3" shared_preferences_windows: dependency: transitive description: name: shared_preferences_windows url: "https://pub.dartlang.org" source: hosted version: "2.0.4" shelf: dependency: transitive description: name: shelf url: "https://pub.dartlang.org" source: hosted version: "1.2.0" shelf_web_socket: dependency: transitive description: name: shelf_web_socket url: "https://pub.dartlang.org" source: hosted version: "1.0.1" sky_engine: dependency: transitive description: flutter source: sdk version: "0.0.99" smooth_page_indicator: dependency: "direct main" description: name: smooth_page_indicator url: "https://pub.dartlang.org" source: hosted version: "1.0.0+2" source_gen: dependency: transitive description: name: source_gen url: "https://pub.dartlang.org" source: hosted version: "1.2.1" source_span: dependency: transitive description: name: source_span url: "https://pub.dartlang.org" source: hosted version: "1.8.1" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.dartlang.org" source: hosted version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.dartlang.org" source: hosted version: "2.1.0" stream_transform: dependency: transitive description: name: stream_transform url: "https://pub.dartlang.org" source: hosted version: "2.0.0" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.dartlang.org" source: hosted version: "1.1.0" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted version: "1.2.0" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted version: "0.4.8" timing: dependency: transitive description: name: timing url: "https://pub.dartlang.org" source: hosted version: "1.0.0" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted version: "1.3.0" url_launcher: dependency: "direct main" description: name: url_launcher url: "https://pub.dartlang.org" source: hosted version: "6.0.18" url_launcher_android: dependency: transitive description: name: url_launcher_android url: "https://pub.dartlang.org" source: hosted version: "6.0.14" url_launcher_ios: dependency: transitive description: name: url_launcher_ios url: "https://pub.dartlang.org" source: hosted version: "6.0.14" url_launcher_linux: dependency: transitive description: name: url_launcher_linux url: "https://pub.dartlang.org" source: hosted version: "2.0.3" url_launcher_macos: dependency: transitive description: name: url_launcher_macos url: "https://pub.dartlang.org" source: hosted version: "2.0.2" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.0.5" url_launcher_web: dependency: transitive description: name: url_launcher_web url: "https://pub.dartlang.org" source: hosted version: "2.0.6" url_launcher_windows: dependency: transitive description: name: url_launcher_windows url: "https://pub.dartlang.org" source: hosted version: "2.0.2" uuid: dependency: transitive description: name: uuid url: "https://pub.dartlang.org" source: hosted version: "3.0.5" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted version: "2.1.1" watcher: dependency: transitive description: name: watcher url: "https://pub.dartlang.org" source: hosted version: "1.0.1" web_socket_channel: dependency: transitive description: name: web_socket_channel url: "https://pub.dartlang.org" source: hosted version: "2.1.0" win32: dependency: transitive description: name: win32 url: "https://pub.dartlang.org" source: hosted version: "2.3.6" xdg_directories: dependency: transitive description: name: xdg_directories url: "https://pub.dartlang.org" source: hosted version: "0.2.0" yaml: dependency: transitive description: name: yaml url: "https://pub.dartlang.org" source: hosted version: "3.1.0" youtube_plyr_iframe: dependency: "direct main" description: name: youtube_plyr_iframe url: "https://pub.dartlang.org" source: hosted version: "2.0.7" sdks: dart: ">=2.14.0 <3.0.0" flutter: ">=2.5.0" ```
danagbemava-nc commented 2 years ago

Hi @jimmyff, I can see you have a local package defined in your pubspec.yaml.

Is everything up to date in there as well?

jimmyff commented 2 years ago

Hi @danagbemava-nc yep, i have checked esc_core and this is as up to date as I can get it:

Showing outdated packages.
[*] indicates versions that are not the latest available.

Package Name         Current  Upgradable  Resolvable  Latest  

direct dependencies: all up-to-date.

dev_dependencies: all up-to-date.

transitive dependencies:
js                   *0.6.3   *0.6.3      *0.6.3      0.6.4   

transitive dev_dependencies:
_fe_analyzer_shared  *31.0.0  *31.0.0     *31.0.0     36.0.0  
analyzer             *2.8.0   *2.8.0      *2.8.0      3.3.1   
dart_style           *2.2.1   *2.2.1      *2.2.1      2.2.2   
all dependencies are up-to-date.

Any other ideas?

Thanks very much

danagbemava-nc commented 2 years ago

Can you please provide full verbose logs of the command that you are experiencing this issue with? The output may be huge, so kindly put it into a .txt file and attach it here.

Thank you

LaurentMalmendier commented 2 years ago

Hi @jimmyff ,

I'am experiencing the same issue (juste after upgrading my flutter sdk vresion). Did you find a solution ?

`Error: Couldn't resolve the package 'material_color_utilities' in 'package:material_color_utilities/material_color_utilities.dart'. ../../../../SDKs/flutter/packages/flutter/lib/src/material/color_scheme.dart:7:8: Error: Not found: 'package:material_color_utilities/material_color_utilities.dart' import 'package:material_color_utilities/material_color_utilities.dart'; ^ ../../../../SDKs/flutter/packages/flutter/lib/src/material/color_scheme.dart:201:11: Error: 'Scheme' isn't a type. final Scheme scheme; ^^^^^^ ../../../../SDKs/flutter/packages/flutter/lib/src/material/color_scheme.dart:204:18: Error: Undefined name 'Scheme'. scheme = Scheme.light(seedColor.value); ^^^^^^ ../../../../SDKs/flutter/packages/flutter/lib/src/material/color_scheme.dart:207:18: Error: Undefined name 'Scheme'. scheme = Scheme.dark(seedColor.value); ^^^^^^ ../../../../SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.0/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'. io.Platform.packageRoot; // ignore: deprecated_member_use ^^^^^^^^^^^ Unhandled exception: FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Amaterial_color_utilities%2Fmaterial_color_utilities.dart; message=StandardFileSystem only supports file: and data: URIs)

0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)

1 asFileUri (package:vm/kernel_front_end.dart:623:37)

2 writeDepfile (package:vm/kernel_front_end.dart:763:21)

#3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:586:9) #4 starter (package:flutter_frontend_server/server.dart:85:12) #5 main (file:///opt/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:24) Failed to package. Command PhaseScriptExecution failed with a nonzero exit code `
mawoka-myblock commented 2 years ago

material_color_utilities

For me, it was enough to add it to my pubspec.yaml like this:

dependencies:
  ...
  material_color_utilities: ^0.1.3
omenchaca-maxaccel commented 2 years ago

I've been getting the same xcode error since I updated my flutter sdk. I was trying to upload a new version but xcode build failed and got this instead.

I tried what @mawoka-myblock suggested but still getting the same issue.

XCode build error ```Invalid depfile: /Users/oswaldo/Desktop/MARepo/SafeTrackApp/safetrack_mobile/.dart_tool/flutter_build/1e8e908cb5af39829985fd6227447cd7/kernel_snapshot.d Invalid depfile: /Users/oswaldo/Desktop/MARepo/SafeTrackApp/safetrack_mobile/.dart_tool/flutter_build/1e8e908cb5af39829985fd6227447cd7/kernel_snapshot.d Invalid depfile: /Users/oswaldo/Desktop/MARepo/SafeTrackApp/safetrack_mobile/.dart_tool/flutter_build/1e8e908cb5af39829985fd6227447cd7/kernel_snapshot.d Invalid depfile: /Users/oswaldo/Desktop/MARepo/SafeTrackApp/safetrack_mobile/.dart_tool/flutter_build/1e8e908cb5af39829985fd6227447cd7/kernel_snapshot.d Error: Couldn't resolve the package 'material_color_utilities' in 'package:material_color_utilities/material_color_utilities.dart'. ../../../../development/flutter/packages/flutter/lib/src/material/color_scheme.dart:7:8: Error: Not found: 'package:material_color_utilities/material_color_utilities.dart' import 'package:material_color_utilities/material_color_utilities.dart'; ^ ../../../../development/flutter/packages/flutter/lib/src/material/color_scheme.dart:201:11: Error: 'Scheme' isn't a type. final Scheme scheme; ^^^^^^ ../../../../development/flutter/packages/flutter/lib/src/material/color_scheme.dart:204:18: Error: Undefined name 'Scheme'. scheme = Scheme.light(seedColor.value); ^^^^^^ ../../../../development/flutter/packages/flutter/lib/src/material/color_scheme.dart:207:18: Error: Undefined name 'Scheme'. scheme = Scheme.dark(seedColor.value); ^^^^^^ Unhandled exception: FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Amaterial_color_utilities%2Fmaterial_color_utilities.dart; message=StandardFileSystem only supports file:* and data:* URIs) #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7) #1 asFileUri (package:vm/kernel_front_end.dart:623:37) #2 writeDepfile (package:vm/kernel_front_end.dart:763:21) #3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:586:9) #4 starter (package:flutter_frontend_server/server.dart:85:12) #5 main (file:///opt/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:24) Failed to package /Users/oswaldo/Desktop/MARepo/SafeTrackApp/safetrack_mobile. Command PhaseScriptExecution failed with a nonzero exit code```
mawoka-myblock commented 2 years ago

Maybe the beta-channel could help, @omenchaca-maxaccel ?

thertzelle commented 2 years ago

I also encountered this error on in a Flutter SDK that was relatively small. I had to add material_color_utilities to my project, which seems unnecessary since I'm not using it.

github-actions[bot] commented 2 years ago

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

github-actions[bot] commented 2 years ago

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.