Failing to update to pod 2.5

93 views
Skip to first unread message

cef

unread,
Sep 11, 2021, 8:13:13 AM9/11/21
to Flutter Development (flutter-dev)
Hi, I've updated Flutter to 2.5.0 but I can't get the pod to update. The output of pod outdated is below. I've tried flutter clean and even pod deintegrate but the Flutter.podspec that gets installed is always for 1.0.0. I tried updating manually the Flutter.podspec.json with Specs/c/0/4/Flutter/2.5/Flutter.podspec.json from the CocoaPods master on GitHub but every time flutter runs it overwrites it.

Any ideas on how to get onto the latest pod release? Anything to do with the fact that the spec is not 2.5.x?

The following pod updates are available:

- abseil 0.20200225.0 -> (unused) (latest version 1.20210324.0)

- BoringSSL-GRPC 0.0.7 -> 0.0.7 (latest version 0.0.19)

- Firebase 8.6.0 -> (unused) (latest version 8.7.0)

- FirebaseAnalytics 8.6.0 -> 8.6.0 (latest version 8.7.0)

- FirebaseAuth 8.6.0 -> 8.6.0 (latest version 8.7.0)

- FirebaseCore 8.6.0 -> 8.6.0 (latest version 8.7.0)

- FirebaseFirestore 8.6.0 -> 8.6.0 (latest version 8.7.0)

- FirebaseMessaging 8.6.0 -> 8.6.0 (latest version 8.7.0)

- Flutter 1.0.0 -> 1.0.0 (latest version 2.5)

- GoogleAppMeasurement 8.6.0 -> 8.6.0 (latest version 8.7.0)

- GoogleSignIn 5.0.2 -> 5.0.2 (latest version 6.0.2)

- gRPC-C++ 1.28.2 -> 1.28.2 (latest version 1.40.0)

- gRPC-Core 1.28.2 -> 1.28.2 (latest version 1.40.0)


flutter doctor

Doctor summary (to see all details, run flutter doctor -v):

[✓] Flutter (Channel stable, 2.5.0, on macOS 11.5.2 20G95 darwin-x64, locale en-BE)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)

    ✗ cmdline-tools component is missing

      Run `path/to/sdkmanager --install "cmdline-tools;latest"`

      See https://developer.android.com/studio/command-line for more details.

    ✗ 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

[✓] Chrome - develop for the web

[✓] Android Studio (version 2020.3)

[✓] VS Code (version 1.56.2)

[✓] Connected device (2 available)

cef

unread,
Nov 26, 2021, 1:37:48 AM11/26/21
to Flutter Development (flutter-dev)
I tracked this problem down to the podhelper.rb script (YOUR_PATH//flutter/packages/flutter_tools/bin/podhelper.rb). It generates a 'fake' Flutter.podspec file but it hardcodes the 1.0.0 podspec.

Resolve this by editing lines 155-190 of podspec.rb (for iOS app), replacing the json definitions for the podspec with the version you want to move to from the CocoaPods repo (e.g. https://github.com/CocoaPods/Specs/blob/master/Specs/c/0/4/Flutter/2.5/Flutter.podspec.jsonfor v2.5). Run pod update and it will update to 2.5.

The next section in the script repeats the same error for macOS apps so you may need to repeat for lines 193-228.

I've opened an issue #94230 for this.
Reply all
Reply to author
Forward
0 new messages