Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pod install fails after following official SDK tutorial #55

Closed
lifenautjoe opened this issue Jan 31, 2019 · 5 comments
Closed

Pod install fails after following official SDK tutorial #55

lifenautjoe opened this issue Jan 31, 2019 · 5 comments

Comments

@lifenautjoe
Copy link

Description:
Following the Flutter SDK Setup step by step, at step 2.8:

2.8 Open terminal, cd to the /ios directory, and run pod install.

The install fails with the error message

Analyzing dependencies
Fetching podspec for `Flutter` from `.symlinks/flutter/ios-release`
Fetching podspec for `flutter_secure_storage` from `.symlinks/plugins/flutter_secure_storage/ios`
Fetching podspec for `image_cropper` from `.symlinks/plugins/image_cropper/ios`
Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
Fetching podspec for `onesignal` from `.symlinks/plugins/onesignal/ios`
Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
Fetching podspec for `uni_links` from `.symlinks/plugins/uni_links/ios`
Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`
Fetching podspec for `video_player` from `.symlinks/plugins/video_player/ios`
[!] CocoaPods could not find compatible versions for pod "OneSignal":
  In Podfile:
    OneSignal (< 3.0, >= 2.9.3)

    onesignal (from `.symlinks/plugins/onesignal/ios`) was resolved to 1.0.5, which depends on
      OneSignal (< 3.0, >= 2.9.5)

Specs satisfying the `OneSignal (< 3.0, >= 2.9.3), OneSignal (< 3.0, >= 2.9.5)` dependency were found, but they required a higher minimum deployment target.

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

[!] Automatically assigning platform `ios` with version `10.2` on target `OneSignalNotificationServiceExtension` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Environment

@lifenautjoe
Copy link
Author

Fixed by running

pod repo update

Hope this helps someone else!

@alaindixon
Copy link

Thank you :)

@ahkkud
Copy link

ahkkud commented Jun 19, 2019

@lifenautjoe I would like to thank you ~

@dukaric1991
Copy link

dukaric1991 commented Aug 14, 2019

How can i run pod repo update on codeMagic if anyone knows?

@enricobenedos
Copy link

enricobenedos commented Oct 4, 2019

Sometimes run

pod repo update
pod install 

is not enough.
This was my error after updated OneSingal SDK on pubspec.yaml from onesignal_flutter: ^2.0.0 to onesignal_flutter: ^2.1.0:

[!] CocoaPods could not find compatible versions for pod "OneSignal":
  In snapshot (Podfile.lock):
    OneSignal (< 3.0, = 2.10.1, >= 2.9.3)

  In Podfile:
    OneSignal (< 3.0, >= 2.9.3)

    onesignal_flutter (from `.symlinks/plugins/onesignal_flutter/ios`) was resolved to 2.1.0, which depends on
      OneSignal (= 2.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 `OneSignal` inside your development pod `onesignal_flutter`.
   You should run `pod update OneSignal` to apply changes you've made.

This is the workaround I used to solve the problem:

cd ios/
pod repo update
rm -rf Podfile.lock Pods
pod install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants