firebase_auth_ui icon indicating copy to clipboard operation
firebase_auth_ui copied to clipboard

CocoaPods could not find compatible versions for pod "firebase_auth_ui":

Open robmr88 opened this issue 4 years ago • 6 comments

Hi, I'm having some trouble launching the app on iPhone. It gives me this error:

[!] CocoaPods could not find compatible versions for pod "firebase_auth_ui":
  In Podfile:
    firebase_auth_ui (from `.symlinks/plugins/firebase_auth_ui/ios`)

Specs satisfying the `firebase_auth_ui (from `.symlinks/plugins/firebase_auth_ui/ios`)` dependency were found, but they required a higher minimum deployment target.

and also : Error output from CocoaPods: ↳

[!] Automatically assigning platform `iOS` with version `8.1` 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 running pod install Error launching application on iPhone 11 Pro Max.

Can you give any help on this?

robmr88 avatar Apr 10 '20 00:04 robmr88

Hi,

I suspect iOS version isn't set in the iOS Podfile.

Please open [flutter app]/ios/Podfile. Uncomment second line or the one which looks like below: platform :ios, '9.0

Please make sure the version is 9.0 as the plugin requires iOS version to be minimum 9.

Let me know if this works :)

sam0829 avatar Apr 10 '20 03:04 sam0829

Now it has changed to :

[!] Unable to determine Swift version for the following pods:

- `firebase_auth_ui` does not specify a Swift version and none of the targets (`Runner`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod. 

And

[!] Automatically assigning platform `iOS` with version `9.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`.

I should say that I am a Android developer and have never worked with iOs development, maybe this are some stupid errors that I should be able to ix by myself.

robmr88 avatar Apr 10 '20 07:04 robmr88

Can you please try to open the iOS project in Xcode and add a new swift file as people say it works for them here.

BTW I am also an Android Developer :)

sam0829 avatar Apr 10 '20 08:04 sam0829

error changes again..

[!] The following Swift pods cannot yet be integrated as static libraries:

The Swift pod `firebase_auth_ui` depends upon `FirebaseUI` and `FBSDKCoreKit`, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.

robmr88 avatar Apr 10 '20 09:04 robmr88

That was self explainatory so i solved it, other errors keep popping after i solve each one. Why is everything in iOs so difficult? This ran immediately on Android

robmr88 avatar Apr 10 '20 09:04 robmr88

I solved id by adding these two lines in Podfile under target

use_modular_headers! use_frameworks!

robmr88 avatar Apr 10 '20 10:04 robmr88