Flutter locked on old pods - flutter

I am unable to get the Flutter project to update to the latest available pods for Flutter and Firebase Plugins. I have tried deleting the pods folder and clearing flutter build cache and pod cache.
My Flutter version is:
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.6 19G2021, locale en-CA)
Output of pod outdated:
Updating spec repo `trunk`
CocoaPods 1.10.0.rc.1 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.10.0.rc.1
Analyzing dependencies
The color indicates what happens when you run `pod update`
<green> - Will be updated to the newest version
<blue> - Will be updated, but not to the newest version because of specified version in Podfile
<red> - Will not be updated because of specified version in Podfile
The following pod updates are available:
- abseil 0.20200225.0 -> (unused) (latest version 1.20200225.0)
- BoringSSL-GRPC 0.0.7 -> 0.0.7 (latest version 0.0.12)
- Firebase 6.26.0 -> (unused) (latest version 6.32.2)
- FirebaseAnalytics 6.6.0 -> 6.6.0 (latest version 6.8.2)
- FirebaseAuth 6.5.3 -> 6.5.3 (latest version 6.9.1)
- FirebaseCore 6.7.2 -> 6.7.2 (latest version 6.10.2)
- FirebaseCoreDiagnostics 1.5.0 -> 1.5.0 (latest version 1.6.0)
- FirebaseFirestore 1.15.0 -> 1.15.0 (latest version 1.17.1)
- FirebaseInstallations 1.3.0 -> 1.3.0 (latest version 1.7.0)
- Flutter 1.0.0 -> 1.0.0 (latest version 1.20.0)
- GoogleAppMeasurement 6.6.0 -> 6.6.0 (latest version 6.8.2)
- GoogleDataTransport 7.2.0 -> 7.2.0 (latest version 7.3.0)
- gRPC-C++ 1.28.2 -> 1.28.2 (latest version 1.32.0)
- gRPC-Core 1.28.2 -> 1.28.2 (latest version 1.32.0)
- nanopb 1.30905.0 -> 1.30905.0 (latest version 1.30906.0)
- Purchases 3.4.0 -> 3.4.0 (latest version 3.7.1)
- PurchasesHybridCommon 1.2.0 -> 1.2.0 (latest version 1.4.0)

I think there's a possibility that your cocopods repo is out of date.
Try the below steps
1. Check whether the dependency versions are correct or not
2. flutter clean
3. pod repo update
4. delete /ios/Pods/ and /ios/Podfile.lock

Related

Flutter version solved failed

I get this error msg and iam not sure how to solve this, i switched to stable channel and runned flutter upgrade:
Downloading ios tools...
Downloading ios-profile tools...
Downloading ios-release tools...
Running "flutter pub get" in projectname...
The current Dart SDK version is 2.18.2.
Because projectname requires SDK version >=2.19.0-197.0.dev <3.0.0, version solving failed.
pub get failed (1; Because projectname requires SDK version >=2.19.0-197.0.dev <3.0.0, version solving failed.)
Exited (1)
Possible solution:
check flutter and dart version:
flutter --version
dart --version
On mac go to Android Studio -> Preferences -> languages ​​& frameworks -> dart
(check here if it's pointing to something like "/Users/waldsonfagundes/development/flutter/bin/cache/dart-sdk" what matters if is if it is pointing inside the flutter folder dart-sdk).
The version appears just below the path (Ex.: 2.18.0)
On mac go to Android Studio -> Preferences -> languages ​​& frameworks -> flutter
check the version in this path too
the stable version today is:
Flutter 3.3.4 and dart 2.18.2
update the file:
pubspec.yaml
environment:
sdk: ">=2.18.0 <3.0.0"
dart version 2.19.0 and beta version still in flutter:
https://docs.flutter.dev/development/tools/sdk/releases?tab=macos
downgrade the version:
flutter downgrade (example: flutter downgrade v3.3.4)

Flutter project ios can't install after upgrade to latest version

I can't install pod
the project was working with flutter version: 2.10.3 after i upgrade to latest
version Channel stable, 3.3.4, now i can't install project on both IOS and android i
am getting problem. the image attached for both IOS and android problem *
As mentioned in the changelog of the package stripe_ios, the minimum deployment target of ios you can set is 12.0.
So, open your runner.plist file with Xcode and change the minimum_deployment_target to 12.0 or not recommended, but, you can downgrade the stripe_ios package to version 2.4.0 or less.

Error with flutter_stripe: ^3.0.2 for ios #11394

Error
!] CocoaPods could not find compatible versions for pod "Stripe":
In Podfile:
stripe_ios (from .symlinks/plugins/stripe_ios/ios) was resolved to 0.0.1, which depends on
Stripe (~> 22.3.0)
None of your spec sources contain a spec satisfying the dependency: Stripe (~> 22.3.0).
You have either:
out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
mistyped the name or version.
not added the source repo that hosts the Podspec to your Podfile.
====================================================================
My Code(https://github.com/NavneetTechlene/stripeExample)
1.) using
Xcode Version 13.3.1 (13E500a)
flutter_stripe: ^3.0.2
Flutter 3.0.1• channel stable • https://github.com/flutter/flutter.git
2.) Build for Android success but for iphone
3.) arch -x86_64 pod install with flutter_stripe: ^3.0.2 above error and with # flutter_stripe: ^3.0.2 in pubspec.yaml i can make ios ipa
I have faced similar issue with flutter_stripe: ^3.0.2 on Flutter 3.0.1 cocoa pods couldn't install.
Change to ios platform 13 in Podfile
platform :ios, '13.0'
Then can run pod install or run app. it worked for me.
I Got Similar issue as Suggested By #Dr_Usman I have changed IOS Version to 13 but It's not help me. So If its not working then Change IOS Version to 13 and then delete Podfile.lock then pod install --repo-update

Flutter app not compiling: CocoaPods could not find compatible versions for pod "flutter_facebook_auth"

firebase_auth: Using Firebase SDK version '8.15.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.15.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "flutter_facebook_auth":
In Podfile:
flutter_facebook_auth (from .symlinks/plugins/flutter_facebook_auth/ios)
Facebook app events needs to update their ios sdk version. Or you can use :
flutter_facebook_auth: 3.5.0+1
don't use ^ in the version because this will install the lastest
version 3.5.2
source:
https://github.com/darwin-morocho/flutter-facebook-auth/issues/157
You can use, in the meantime, the below dependencies in your Pubspec.yaml (these are compatible)
flutter_facebook_auth: 4.3.1
facebook_app_events: ^0.16.0
Hopefully facebook_app_events will be updated soon. You can follow the issue in their GitHub page.

How do I identify which flutter packages are blocking others from being updated to latest version?

I want to upgrade my dependencies to the latest possible, but I can't because they are being blocked by one of the packages.
How can I tell which one is causing the issue where others can't be updated? They pretty much all seem to be outdated. Running flutter pub outdated gives me the list of my packages where the resolvable and updatable are always the same as my current package.
> flutter pub outdated
Showing outdated packages.
[*] indicates versions that are not the latest available.
Package Name Current Upgradable Resolvable Latest
direct dependencies:
bip39 *1.0.3 *1.0.3 *1.0.3 1.0.6
cloud_firestore *0.16.0+1 *0.16.0+1 *0.16.0+1 1.0.5
firebase_auth *0.20.1 *0.20.1 *0.20.1 1.1.0
firebase_core *0.7.0 *0.7.0 *0.7.0 1.0.3
firebase_storage *7.0.0 *7.0.0 *7.0.0 8.0.3
flutter_blue *0.7.3 *0.7.3 *0.7.3 0.8.0
google_maps_flutter *1.2.0 *1.2.0 *1.2.0 2.0.3
http *0.12.2 *0.12.2 *0.12.2 0.13.1
image *2.1.19 *2.1.19 *2.1.19 3.0.2
image_picker *0.6.7+22 *0.6.7+22 *0.6.7+22 0.7.4
local_auth *0.6.3+4 *0.6.3+4 *0.6.3+4 1.1.4
permission_handler *5.1.0+2 *5.1.0+2 *5.1.0+2 6.1.3
transitive dependencies:
archive *2.0.13 *2.0.13 *2.0.13 3.1.2
args *1.6.0 *1.6.0 *1.6.0 2.0.0
bech32 *0.1.2 *0.1.2 *0.1.2 0.2.0
bip32 *1.0.7 *1.0.7 *1.0.7 1.0.10
bs58check *1.0.1 *1.0.1 *1.0.1 1.0.2
cloud_firestore_platform_interface *3.0.2 *3.0.2 *3.0.2 4.0.1
cloud_firestore_web *0.3.0+2 *0.3.0+2 *0.3.0+2 1.0.5
convert *2.1.1 *2.1.1 *2.1.1 3.0.0
crypto *2.1.5 *2.1.5 *2.1.5 3.0.1
firebase_auth_platform_interface *3.1.0 *3.1.0 *3.1.0 4.1.0
firebase_auth_web *0.3.3 *0.3.3 *0.3.3 1.0.6
firebase_core_platform_interface *3.0.1 *3.0.1 *3.0.1 4.0.0
firebase_core_web *0.2.1+3 *0.2.1+3 *0.2.1+3 1.0.2
firebase_storage_platform_interface *1.0.4 *1.0.4 *1.0.4 2.0.1
firebase_storage_web *0.1.1+3 *0.1.1+3 *0.1.1+3 1.0.3
fixnum *0.10.11 *0.10.11 *0.10.11 1.0.0
flutter_plugin_android_lifecycle *1.0.11 *1.0.11 *1.0.11 2.0.1
google_maps_flutter_platform_interface *1.2.0 *1.2.0 *1.2.0 2.0.4
hex *0.1.2 *0.1.2 *0.1.2 0.2.0
http_parser *3.1.4 *3.1.4 *3.1.4 4.0.0
image_picker_platform_interface *1.1.6 *1.1.6 *1.1.6 2.1.0
intl *0.16.1 *0.16.1 *0.16.1 0.17.0
permission_handler_platform_interface *2.0.2 *2.0.2 *2.0.2 3.1.3
petitparser *3.1.0 *3.1.0 *3.1.0 4.1.0
plugin_platform_interface *1.0.3 *1.0.3 *1.0.3 2.0.0
pointycastle *1.0.2 *1.0.2 *1.0.2 3.0.1
protobuf *1.1.3 *1.1.3 *1.1.3 2.0.0
quiver *2.1.5 *2.1.5 *2.1.5 3.0.1
rxdart *0.24.1 *0.24.1 *0.24.1 0.26.0
source_span *1.8.0 *1.8.0 *1.8.0 1.8.1
stream_transform *1.2.0 *1.2.0 *1.2.0 2.0.0
uuid *2.2.2 *2.2.2 *2.2.2 3.0.4
xml *4.5.1 *4.5.1 *4.5.1 5.1.0