sam0829 / firebase_auth_ui

Flutter plugin for Firebase Auth UI. Supports popular auth providers by using native SDK for Android and iOS.
https://pub.dev/packages/firebase_auth_ui
BSD 3-Clause "New" or "Revised" License
49 stars 20 forks source link

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

Open robmr88 opened 4 years ago

robmr88 commented 4 years ago

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?

sam0829 commented 4 years ago

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 :)

robmr88 commented 4 years ago

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.

sam0829 commented 4 years ago

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 :)

robmr88 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

use_modular_headers! use_frameworks!