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

IOS pod install is failing #922

Closed
sebqq opened this issue Dec 18, 2019 · 19 comments
Closed

IOS pod install is failing #922

sebqq opened this issue Dec 18, 2019 · 19 comments

Comments

@sebqq
Copy link

sebqq commented Dec 18, 2019

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

@sebqq
Copy link
Author

sebqq commented Dec 18, 2019

Eveything is working fine with 3.6.0.

@rgomezp
Copy link
Contributor

rgomezp commented Dec 18, 2019

Can you try pod update?

@stefanoTron
Copy link

pod update worked for me. thanks

@sebqq
Copy link
Author

sebqq commented Dec 19, 2019

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

@sebqq sebqq closed this as completed Dec 19, 2019
@GHO5TMEDO
Copy link

pod update worked for me too!

@rajeshsmallarc
Copy link

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

@EsportudoAdmin
Copy link

EsportudoAdmin commented Jan 29, 2021

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.

@djw27
Copy link

djw27 commented Feb 18, 2021

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

@guiac
Copy link

guiac commented Mar 25, 2021

did you fix it? I have same problem

@Apatoallo
Copy link

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

@Nodeocrat
Copy link

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

@rgomezp
Copy link
Contributor

rgomezp commented May 5, 2021

try deintegrating the pods and reinstalling via

pod deintegrate && pod install

@sinclas
Copy link

sinclas commented Aug 6, 2021

Having the same issue: M1

CocoaPods could not find compatible versions for pod "OneSignal":
In snapshot (Podfile.lock):
OneSignal (= 2.12.6)

In Podfile:
react-native-onesignal (from ../node_modules/react-native-onesignal) was resolved to 3.9.4, which depends on
OneSignal (= 2.16.5)

Specs satisfying the OneSignal (= 2.12.6), OneSignal (= 2.16.5) dependency were found, but they required a higher minimum deployment target.

Looks like I have to update a lot?

@mrinterestfull
Copy link

mrinterestfull commented Nov 17, 2021

What is the final solution here?

yarn.lock
react-native-onesignal@^4.3.2:
version "4.3.3"
resolved "https://registry.yarnpkg.com/react-native-onesignal/-/react-native-onesignal-4.3.3.tgz#c2249b69787065cb8d361e273d4ff4fac3bbf5ae"
integrity sha512-aJdgp32HsW1PEXgwMNXAaSbr037VdZmO70NPIQHWgCsIAGG4SD/MW9Kj197z1wdn/CRcfz/YNsZwhlmwUIgDMA==
dependencies:
invariant "^2.2.2"

Podfile.lock

  • react-native-onesignal (4.3.3):
    • OneSignalXCFramework (= 3.9.1)
    • React (< 1.0.0, >= 0.13.0)

or I also tried
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignal', '>= 2.9.3', '< 5.0'
#pod 'OneSignalXCFramework', '>= 3.0.0', '< 5.0'
end

M1 processor. IOS target >11 react-native

@chaudev
Copy link

chaudev commented Dec 16, 2021

On M1 Mac

  • Locate Terminal.app in Finder. (Applications->Terminal.app)
  • Right-click and choose Get Info
  • Check the “Open using Rosetta”
  • Quit all instances of Terminal app and run it again
  • Run sudo gem install ffi
  • Run pod update
  • Run pod install

@mrinterestfull
Copy link

Hello,
Just so we understand.
The above workaround and recommendation is to compile the app using emulator aka to emulate intel based processor (amd64); because I assume the library currently does not support arm64?

Are there plans to have arm64 support native without emulators?
Thank you
Lucas

@0xtruly
Copy link

0xtruly commented Jun 10, 2022

Can you try pod update?

This worked for me too

@Ozaoujal
Copy link

Ozaoujal commented Sep 5, 2023

running pod update from vscode didn't worked, while running it from terminal everything went right, m1 rn:v0.64.3

@VaibhavAcharya22
Copy link

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

I solved this error by changing the version of ios to platform :ios, '12.0' in Podfile.

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

No branches or pull requests