Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on building release on version 1.3.6 #49

Open
diegoalex opened this issue Mar 6, 2024 · 2 comments
Open

Error on building release on version 1.3.6 #49

diegoalex opened this issue Mar 6, 2024 · 2 comments

Comments

@diegoalex
Copy link

IOS build is failing with the following error after update to the latest version:

../programs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_advanced_drawer-1.3.6/lib/src/widget.dart:250:15: Error: The getter 'mounted' isn't defined for the class 'BuildContext'.
     - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../programs/flutter/packages/flutter/lib/src/widgets/framework.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'mounted'.
      if (context.mounted) {
                  ^^^^^^^
    Failed to package /Users/builder/clone.
    Command PhaseScriptExecution failed with a nonzero exit code

Forcing the library to use 1.3.5 builds the app with no issue.

@alex-melnyk
Copy link
Owner

IOS build is failing with the following error after update to the latest version:

../programs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_advanced_drawer-1.3.6/lib/src/widget.dart:250:15: Error: The getter 'mounted' isn't defined for the class 'BuildContext'.
     - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../programs/flutter/packages/flutter/lib/src/widgets/framework.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'mounted'.
      if (context.mounted) {
                  ^^^^^^^
    Failed to package /Users/builder/clone.
    Command PhaseScriptExecution failed with a nonzero exit code

Forcing the library to use 1.3.5 builds the app with no issue.

Please run flutter doctor -v and response here.

@diegoalex
Copy link
Author

This project is using the Flutter 2.10.5.
The app builds on my machine and emulator, but Codemagic deploy was failing since the flutter_advanced_drawer 1.3.6 was released. (only worked after force to 1.3.5).

  • this flutter doctor is showing "CocoaPods installed but not working.", but it's working fine, i guess it might be some confusion due to fvm.
[✓] Flutter (Channel stable, 2.10.5, on macOS 13.4 22F66 darwin-arm, locale en-GB)
    • Flutter version 2.10.5 at /Users/diegoalex/Development/fvm/2.10.5
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 (1 year, 11 months ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/diegoalex/Library/Android/sdk
    • Platform android-34, build-tools 33.0.2
    • Java binary at: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_391-b13)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[!] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ✗ CocoaPods installed but not working.
        You appear to have CocoaPods installed but it is not working.
        This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
        This can usually be fixed by re-installing CocoaPods.
      To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

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

[!] Android Studio (version 2022.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
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.87.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] VS Code (version 1.80.0-insider)
    • VS Code at /Applications/Visual Studio Code - Insiders.app/Contents
    • Flutter extension version 3.67.20230601

[✓] Connected device (2 available)
    • iPhone 14 Pro (mobile) • 3BBC841C-1B38-4359-BBD2-3434 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 454

[✓] HTTP Host Availability
    • All required HTTP hosts are available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants