flutter_web_auth icon indicating copy to clipboard operation
flutter_web_auth copied to clipboard

macOS pod install fails

Open creativecreatorormaybenot opened this issue 5 years ago • 5 comments

Resolving dependencies of `Podfile`
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_0_3_5.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/7.3.0/Firebase.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_c_7_9.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/c/7/9/Reachability/3.2/Reachability.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json exists! Returning local because checking is only perfomed in repo update
[!] CocoaPods could not find compatible versions for pod "flutter_web_auth":
  In Podfile:
    flutter_web_auth (from `Flutter/ephemeral/.symlinks/plugins/flutter_web_auth/macos`)

Specs satisfying the `flutter_web_auth (from `Flutter/ephemeral/.symlinks/plugins/flutter_web_auth/macos`)` dependency were found, but they required a higher minimum deployment target.

I am not sure the Firebase dependencies have anything to do with it.

What I noticed is that flutter_web_auth declares the following in the Podspec:

s.platform = :osx, '10.15'

While the other plugins use s.platform = :osx, '10.11' instead.

@LinusU The fix seems to be to change platform :osx, '10.11' to platform :osx, '10.15' in the app's macos/Podfile.

It might be worth adding that to your docs because the Flutter template generates it with 10.11 🤔 However, I assume that I am actually missing something here as other plugins are also declaring a higher target.

This is missing:

Bildschirmfoto 2021-02-23 um 01 22 49

Ahmadre avatar Feb 23 '21 00:02 Ahmadre

I got stuck on a 'FMDB pod' version resolving during build process. It generates pod project with OSX 10.6 dependency and conflicts with main Runner project probably.

buzzySmile avatar Aug 18 '21 20:08 buzzySmile

@LinusU The fix seems to be to change platform :osx, '10.11' to platform :osx, '10.15' in the app's macos/Podfile.

It might be worth adding that to your docs because the Flutter template generates it with 10.11 🤔 However, I assume that I am actually missing something here as other plugins are also declaring a higher target.

Still !!!

jocubeit avatar Jul 21 '22 16:07 jocubeit

Would love to hear what the best practices are here. The APIs we are using is only supported on macOS 10.15 and newer, so that's why we have set the platform to that...

LinusU avatar Nov 01 '22 10:11 LinusU