fluttercommunity / plus_plugins

Flutter Community Plus Plugins
BSD 3-Clause "New" or "Revised" License
1.61k stars 969 forks source link

[Bug]: device_info_plus crashes the app on MacOs 13.x with flutter 3.10.x #1856

Closed Lukebana closed 1 year ago

Lukebana commented 1 year ago

Platform

MacOs 13.x

Plugin

device_info_plus

Version

^9.0.0

Flutter SDK

3.10.2

Steps to reproduce

  1. Add the dependency in the project.
  2. Run flutter pub get
  3. Import the package to the project
  4. Try to run the app on MacOs

Code Sample

No response

Logs

[ +711 ms] dyld[36265]: Library not loaded: @rpath/device_info_plus.framework/Versions/A/device_info_plus
[        ]   Referenced from: <A6A93279-C34B-35B6-B42A-EA0EB974EBF6>
/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva Translate.app/Contents/MacOS/Viva Translate
[        ]   Reason: tried: '/usr/lib/swift/device_info_plus.framework/Versions/A/device_info_plus' (no such file, not in dyld
cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/usr/lib/swift/device_info_plus.framework/Versions/A/device_info_plus' (no such file, not in dyld cache),
'/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' (code signature in
<7881A8C9-7C61-3F33-9C2D-82880BF62F3A> '/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' not valid for use in process: mapped file
has no Team ID and is not a platform binary (signed with custom identity or adhoc?)),
'/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/MacOS/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/device_info_plus.framework/Versi
ons/A/device_info_plus' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/mac
osx/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' (code signature in
<7881A8C9-7C61-3F33-9C2D-82880BF62F3A> '/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' not valid for use in process: mapped file
has no Team ID and is not a platform binary (signed with custom identity or adhoc?)),
'libs/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/MacOS/libs/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/usr/lib/swift/device_info_plus.framework/Versions/A/device_info_plus' (no such file, not in dyld cache),
'/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/usr/lib/swift/device_info_plus.framework/Versions/A/device_info_plus' (no such file, not in dyld cache),
'/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' (code signature in
<7881A8C9-7C61-3F33-9C2D-82880BF62F3A> '/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' not valid for use in process: mapped file
has no Team ID and is not a platform binary (signed with custom identity or adhoc?)),
'/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/MacOS/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/device_info_plus.framework/Versi
ons/A/device_info_plus' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/mac
osx/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' (code signature in
<7881A8C9-7C61-3F33-9C2D-82880BF62F3A> '/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' not valid for use in process: mapped file
has no Team ID and is not a platform binary (signed with custom identity or adhoc?)),
'libs/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/Users/luk3d/Projects/viva_translate/viva-desktop/build/macos/Build/Products/Debug/Viva
Translate.app/Contents/MacOS/libs/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/Library/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' (no such file),
'/System/Library/Frameworks/device_info_plus.framework/Versions/A/device_info_plus' (no such file, not in dyld cache)
[   +3 ms] Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
[        ] Error launching application on macOS.
[   +1 ms] "flutter run" took 37,450ms.
[   +1 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:757:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1336:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:296:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:244:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:91:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:91:3)
           <asynchronous suspension>

[ +167 ms] ensureAnalyticsSent: 165ms
[        ] Running 1 shutdown hook
[   +1 ms] Shutdown hooks complete
[        ] exiting with code 1

Flutter Doctor

[✓] Flutter (Channel stable, 3.10.2, on macOS 13.4 22F66 darwin-arm64, locale en-BR)
    • Flutter version 3.10.2 on channel stable at /Users/luk3d/Desktop/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9cd3d0d9ff (2 days ago), 2023-05-23 20:57:28 -0700
    • Engine revision 90fa3ae28f
    • Dart version 3.0.2
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/luk3d/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.0

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

[✓] Android Studio (version 2022.1)
    • 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 11.0.15+0-b2043.56-8887301)

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.4 22F66 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 113.0.5672.126

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

• No issues found!

Checklist before submitting a bug

jifang commented 6 months ago

Hello I am getting the same error, how do you fix it?