React-native-onesignal: IOS `pod install` is failing

Created on 18 Dec 2019  ·  12Comments  ·  Source: OneSignal/react-native-onesignal

Hello,

I have problem installing this library. After pod install command following error message is shown:

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

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

    react-native-onesignal (from `../node_modules/react-native-onesignal`) was resolved to 3.6.1, which depends on
      OneSignal (= 2.12.3)

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

Don't you have any suggestions? Thank you so much!

react-native: 0.61.5
react-native-onesignal: 3.6.1

Help Wanted

Most helpful comment

Can you try pod update?

All 12 comments

Eveything is working fine with 3.6.0.

Can you try pod update?

pod update worked for me. thanks

Thank you so much! pod update is also working for me.

pod update worked for me too!

@GHO5TMEDO
What is your React Native, Cocoa Pods and OneSignal Version?

pod update didn't work for me 🤨 @rgomezp I'm using the new Apple M1 chip..any ideas?

The message persists:

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

react-native-onesignal (from `../node_modules/react-native-onesignal`) was resolved to 4.0.3, which depends on
  OneSignal (= 3.1.0)

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

pod update didn't work for me 🤨 @rgomezp I'm using the new Apple M1 chip..any ideas?

The message persists:

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

react-native-onesignal (from `../node_modules/react-native-onesignal`) was resolved to 4.0.3, which depends on
  OneSignal (= 3.1.0)

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

This looks as though you have

target 'OneSignalNotificationServiceExtension' do
  pod 'OneSignal', '>= 2.9.3', '< 3.0'
end

specified in your Podfile, which isn't valid for react-native-onesignal >= 4.0.0

did you fix it? I have same problem

I have same problem, pod update didn't work for me too

also having this issue - has anyone found a fix for it yet?

try deintegrating the pods and reinstalling via

pod deintegrate && pod install

Was this page helpful?
0 / 5 - 0 ratings