mobile_scanner icon indicating copy to clipboard operation
mobile_scanner copied to clipboard

Error building apps using this library in MacOS

Open Devenom1 opened this issue 2 years ago • 5 comments

Here is the error I started receiving recently when running the app in MacOS

Resolving dependencies of `Podfile`
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
    [!] CocoaPods could not find compatible versions for pod "mobile_scanner":
      In Podfile:
        mobile_scanner (from `Flutter/ephemeral/.symlinks/plugins/mobile_scanner/macos`)

    Specs satisfying the `mobile_scanner (from `Flutter/ephemeral/.symlinks/plugins/mobile_scanner/macos`)` dependency were found, but they required a higher minimum deployment target.

    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:317:in `raise_error_unless_state'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:299:in `block in unwind_for_conflict'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:297:in `tap'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:297:in `unwind_for_conflict'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:682:in `attempt_to_activate'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:254:in `process_topmost_state'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/resolver.rb:94:in `resolve'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:1078:in `block in resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:1076:in `resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:416:in `analyze'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:241:in `block in resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:240:in `resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:161:in `install!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:23:in `load'
    /usr/local/bin/pod:23:in `<main>'

Exception: Error running pod install

Devenom1 avatar Jun 27 '22 07:06 Devenom1

Same here. I think you need to update the minimum macOS version. But I wish there was the option to not do this, since I want to develop in macOS and test in Android. I don't need it working on Mac.

bernaferrari avatar Jul 08 '22 21:07 bernaferrari

READ.ME says minimum is MACOS 11.0

You don't have to compile flutter using all OS....
flutter config --no-enable-macos-desktop

craigbrown-nist avatar Aug 01 '22 21:08 craigbrown-nist

How do I develop it then?

bernaferrari avatar Aug 01 '22 21:08 bernaferrari

My lack of understanding, maybe.

Sounds like you are using a Mac to write code and wish to develop for Android - so why compile for Mac and then not have this problem?

craigbrown-nist avatar Aug 01 '22 21:08 craigbrown-nist

Oh. And use the Android Studio to with simulate or use hardware to test.

craigbrown-nist avatar Aug 01 '22 21:08 craigbrown-nist

Can you please try again with version 3.0.0?

juliansteenbakker avatar Feb 09 '23 21:02 juliansteenbakker