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

flutter_inset_box_shadow dependency causes build failure on iOS #87

Open
MotionMAIN opened this issue Dec 27, 2024 · 0 comments
Open

flutter_inset_box_shadow dependency causes build failure on iOS #87

MotionMAIN opened this issue Dec 27, 2024 · 0 comments

Comments

@MotionMAIN
Copy link

Steps to reproduce

The dependency flutter_inset_box_shadow is causing build failures on iOS due to the use of the deprecated hashValues method. The error occurs when trying to build:

https://arc.net/l/quote/mvfdqhaw

Error (Xcode): The method 'hashValues' isn't defined for the class 'BoxShadow'.

This is happening because hashValues was removed in newer Flutter versions. The error persists even with older versions of flutter_inset_box_shadow (tested 1.0.8 down to 1.0.2).

Environment:

  • Flutter: 3.27.1
  • Dart: 3.6.0
  • clerk_flutter: 0.0.4-dev

Expected results

The app should build and run successfully on iOS devices and simulators.

Actual results

Building for iOS fails with the following error:
Error (Xcode): ../../../.pub-cache/hosted/pub.dev/flutter_inset_box_shadow-1.0.8/lib/src/box_shadow.dart:124:7: Error: The method 'hashValues' isn't defined for the class 'BoxShadow'.
Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.

Code sample

Code sample

This issue can be reproduced with a basic Flutter project using clerk_flutter:

dependencies:
  flutter:
    sdk: flutter
  clerk_flutter: ^0.0.4-dev

The error occurs immediately when trying to build for iOS, regardless of how the package is used in the code.

Screenshots or Video

Screenshots / Video demonstration Bildschirmfoto 2024-12-27 um 12 17 21

Logs

Logs
flutter run --dart-define-from-file=.env --flavor VecTime
Launching lib/main.dart on iPhone 15 Pro in debug mode...
Running Xcode build...                                                  
Xcode build done.                                            7,3s
Failed to build iOS app
Error (Xcode): ../../../.pub-cache/hosted/pub.dev/flutter_inset_box_shadow-1.0.2/lib/src/box_shadow.dart:124:7: Error: The method 'hashValues' isn't defined for the class
'BoxShadow'.


Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.2 24C101 darwin-arm64, locale de-DE)
    • Flutter version 3.27.1 on channel stable at /Users/jlampe/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 17025dd882 (11 days 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.0)
    • Android SDK at /Users/jlampe/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Users/jlampe/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16B40
    • 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 /Users/jlampe/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.3+-79915917-b509.11)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.1.1)
    • IntelliJ at /Users/jlampe/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 83.0.4
    • Dart plugin version 243.23177

[✓] Connected device (4 available)
    • iPhone 15 Pro (mobile)          • 16545D4B-044D-4CC2-8C4A-A01A84BFAD1B • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-5 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 15.2 24C101 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 15.2 24C101 darwin-arm64
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 131.0.6778.205
    ! Error: Browsing on the local area network for iPhone von Jonas. Ensure the device is unlocked and attached with a cable or associated with the same local area network as
      this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!
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

1 participant