Error with flutter_stripe: ^3.0.2 for ios #11394 - flutter

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

Related

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.

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.

Flutter Firebase Pubspec.yaml Update-- Getting [!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":

After updating my pubspect yaml versions from
firebase_auth: ^1.0.1
firebase_core: ^1.0.2
cloud_firestore: ^1.0.3
to
firebase_auth: ^1.1.2
firebase_core: ^1.1.0
cloud_firestore: ^1.0.7
I'm getting the following output:
checking is only perfomed in repo update
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In snapshot (Podfile.lock):
Firebase/CoreOnly (= 7.3.0)
In Podfile:
firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved to 1.1.0, which depends on
Firebase/CoreOnly (= 7.11.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.
After running 'pod init' inside iOS folder, I'm getting
[!] No Xcode project found, please specify one
and after running 'pod install' within the iOS folder also,
[!] No `Podfile' found in the project directory.
However. The Podfile DOES EXIST.
[Please refer to the image attached][1]
Also, my Flutter Doctor is showing no errors.
Thanks, and all best,
-A.V.
[1]: https://i.stack.imgur.com/DR2kx.png

Flutter: CocoaPods could not find compatible versions for pod "Firebase/Messaging"

I'm trying to run flutter on iOS Simulator and when executing flutter run the next error appears:
[!] CocoaPods could not find compatible versions for pod "Firebase/Messaging":
In Podfile:
firebase_messaging (from .symlinks/plugins/firebase_messaging/ios) was resolved to 9.1.3, which depends on
Firebase/Messaging (= 7.11.0)
None of your spec sources contain a spec satisfying the dependency: Firebase/Messaging (= 7.11.0).
Does anyone know why is this happening?
What if tried:
Flutter clean + flutter pug get
Delete de iOS folder and then flutter create .
On the iOS folder delete Pods file and Podfile.dock then pod init + pod install causing same error
The packages i'm using
cupertino_icons: ^1.0.2
cross_connectivity: ^3.0.2
crypto: ^3.0.1
device_info_plus: ^1.0.1
encrypt: ^5.0.0
firebase_analytics: ^8.0.2
firebase_core: ^1.1.0
firebase_crashlytics: ^2.0.2
firebase_messaging: ^9.1.3
flutter_barcode_scanner: ^2.0.0
flutter_card_swipper: ^0.4.0
flutter_easyloading: ^3.0.0
flutter_local_notifications: ^5.0.0+1
flutter_speed_dial: ^3.0.5
fluttertoast: ^8.0.3
http: ^0.13.2
image: ^3.0.2
image_picker: ^0.7.4
intl: ^0.17.0
location: ^4.1.1
mime_type: ^1.0.0
path_provider: ^2.0.1
permission_handler: ^6.1.3
shared_preferences: ^2.0.4
sqflite: ^2.0.0+3
url_launcher: ^6.0.3
webview_flutter: ^2.0.4
Configuartion
iOs Deployment Target 12.1
Flutter 2.0.4
flutter doctor -v Result -> all green colored
I preferred to ask here before creating a new issue on Github
If this is happening to someone else then I'll create a new issue on Github.
This problem can occur when using a Mac with the M1 chip.
The 'CocoaPods could not find compatible versions for pod "Firebase/Messaging' error wil be solved when solving first the 'pod repo update' error.
I've tried different solutions but the ones that worked for me was the following.
Steps to follow:
On the terminal run: sudo arch -x86_64 gem install ffi
On the ios project folder run: arch -x86_64 pod install --repo-update instead of pod repo update (just in case delete the Podfile.lock before this step)
Now your build should be successful, press F5.
Ther are more solutions mentioned on Github.
I finally found mine on this comment.
you should update the cocoa master repos with
pod repo update
then
pod install
again
I was able to solve similar error by updating the target iOS platform to 10.0. Update the platform configured in the Podfile to platform :ios, '10.0'. I've also had to update the iOS Deployment Target to 10.0 - located on Runner > Info > Deployment Target
After that, deleting the Podfile.lock with rm -rf Podfile.lock then running pod update and pod install solved the issue for me.
pod update Firebase/Messaging
fixed me up
don't specify firebase_messaging version
firebase_messaging: // remove version from here
instead of pod repo update
arch -x86_64 pod install --repo-update
try this:
firebase_core: null
firebase_crashlytics: null
firebase_messaging: null

Flutter issue - Flutter_driver from sdk depends on file 5.0.6 and flutter_gallery depends on file 5.0.7

I got this issue using flutter packages get:
Because every version of flutter_driver from sdk depends on file 5.0.6 and flutter_gallery depends on file 5.0.7, flutter_driver from sdk is forbidden.
So, because flutter_gallery depends on flutter_driver any from sdk, version solving failed.
pub upgrade failed (1)
I don't know what I am supposed to do here, I was trying to compile this flutter example: https://github.com/flutter/flutter/tree/master/examples/flutter_gallery
This may be because flutter dependencies are locked to fixed versions.
You can check this in the pubspec.yaml for flutter_driver which is in
\flutter\packages\flutter_driver
and compare it to the latest version at GitHub
If so, flutter upgrade won't necessarily update the dependencies versions. Doing a forced update of the packages may resolve your problem.
flutter update-packages --force-upgrade