Flutter, Firebase, M1 Mac Chip

335 views
Skip to first unread message

Tomic Riedel

unread,
May 2, 2021, 2:23:06 AM5/2/21
to Flutter Development (flutter-dev)
Hey!
I am in the process of setting up authentication, firestore, etc. on my Flutter project. I can run with all the file changes even after adding the app to firebase, but as soon as I add any firebase package, whether it is firebase_auth, firebase_core or any other package, a huge error comes up.

Does anyone have the same error and was able to fix it somehow, because the REST Api isn't exactly the thing that brings anything in the long run.

Here is the error code:

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...

Running pod install...                                             811ms

CocoaPods' output:

      Preparing


    Analyzing dependencies


    Inspecting targets to integrate

      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)


    Finding Podfile changes

      A firebase_core

      - Firebase

      - Flutter

      - connectivity

      - flutter_local_notifications

      - path_provider

      - share

      - shared_preferences

      - sqflite

      - wifi_info_flutter


    Fetching external sources

    -> Fetching podspec for `Flutter` from `Flutter`

    -> Fetching podspec for `connectivity` from

    `.symlinks/plugins/connectivity/ios`

    -> Fetching podspec for `firebase_core` from

    `.symlinks/plugins/firebase_core/ios`

    firebase_core: Using Firebase SDK version '7.3.0' defined in 'firebase_core'

    -> Fetching podspec for `flutter_local_notifications` from

    `.symlinks/plugins/flutter_local_notifications/ios`

    -> Fetching podspec for `path_provider` from

    `.symlinks/plugins/path_provider/ios`

    -> Fetching podspec for `share` from `.symlinks/plugins/share/ios`

    -> Fetching podspec for `shared_preferences` from

    `.symlinks/plugins/shared_preferences/ios`

    -> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`

    -> Fetching podspec for `wifi_info_flutter` from

    `.symlinks/plugins/wifi_info_flutter/ios`


    Resolving dependencies of `Podfile`

      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local

      because checking is only perfomed in repo update

      CDN: trunk Relative path: all_pods_versions_0_3_5.txt exists! Returning

      local because checking is only perfomed in repo update

      CDN: trunk Relative path: Specs/0/3/5/Firebase/7.4.0/Firebase.podspec.json

      exists! Returning local because checking is only perfomed in repo update

      CDN: trunk Relative path: Specs/0/3/5/Firebase/7.4.0/Firebase.podspec.json

      exists! Returning local because checking is only perfomed in repo update

      CDN: trunk Relative path: all_pods_versions_c_7_9.txt exists! Returning

      local because checking is only perfomed in repo update

      CDN: trunk Relative path:

      Specs/c/7/9/Reachability/3.2/Reachability.podspec.json exists! Returning

      local because checking is only perfomed in repo update

      CDN: trunk Relative path: all_pods_versions_f_4_e.txt exists! Returning

      local because checking is only perfomed in repo update

      CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists!

      Returning local because checking is only perfomed in repo update

      CDN: trunk Relative path: Specs/0/3/5/Firebase/7.3.0/Firebase.podspec.json

      exists! Returning local because checking is only perfomed in repo update

    [!] CocoaPods could not find compatible versions for pod

    "Firebase/CoreOnly":

      In snapshot (Podfile.lock):

        Firebase/CoreOnly (= 7.4.0)


      In Podfile:

        firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved

        to 0.7.0, which depends on

          Firebase/CoreOnly (= 7.3.0)



    You have either:

     * out-of-date source repos which you can update with `pod repo update` or

     with `pod install --repo-update`.

     * changed the constraints of dependency `Firebase/CoreOnly` inside your

     development pod `firebase_core`.

       You should run `pod update Firebase/CoreOnly` to apply changes you've

       made.


    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:32

    8:in `raise_error_unless_state'

    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:31

    0:in `block in unwind_for_conflict'

    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:30

    8:in `tap'

    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:30

    8:in `unwind_for_conflict'

    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:25

    7:in `process_topmost_state'

    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:18

    2:in `resolve'

    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:i

    n `resolve'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:94:

    in `resolve'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analy

    zer.rb:1074:in `block in resolve_dependencies'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.

    rb:64:in `section'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analy

    zer.rb:1072:in `resolve_dependencies'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analy

    zer.rb:124:in `analyze'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:41

    4:in `analyze'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:23

    9:in `block in resolve_dependencies'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.

    rb:64:in `section'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:23

    8:in `resolve_dependencies'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:16

    0:in `install!'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/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.10.1/lib/cocoapods/command.rb:52:i

    n `run'

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top

    (required)>'

    /usr/local/bin/pod:23:in `load'

    /usr/local/bin/pod:23:in `<main>'


Error output from CocoaPods:


    [!] Automatically assigning platform `iOS` with version `10.0` on target

    `Runner` because no platform was specified. Please specify a platform for

    this target in your Podfile. See

    `https://guides.cocoapods.org/syntax/podfile.html#platform`.


Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.

To update the CocoaPods specs, run:

  pod repo update




Error running pod install

Error launching application on iPhone 11 Pro Max.

Suzuki Tomohiro

unread,
May 2, 2021, 9:51:13 AM5/2/21
to Tomic Riedel, Flutter Development (flutter-dev)
The error message says “pod repo update”

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/276802e4-10e8-437c-9d33-e85b63f56526n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages