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 · 25 comments
Closed

IOS pod install is failing #922

sebqq opened this issue Dec 18, 2019 · 25 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!

@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

@Git-Ashley
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.

@SevdaCimen
Copy link

this solution works for me ,
#922 (comment)
Thank you!

@Med5KDB
Copy link

Med5KDB commented Aug 17, 2024

Same issue here. pod update not working for me. I got the same error when running both pod install and pod update. See attached screenshot. I also change the ios deployment target on Xcode but not working.

Hey @VaibhavAcharya22! Thanks for your suggestion.
Would you mind to tell me from which version you changed to 12.0? Following is what I have:
platform :ios, podfile_properties['ios.deploymentTarget'] || '13.4'. Should I downgrade to your given version i.e 12.0?

I've tried... it was working but got the similar error but w/ React common/ Yoga (not pretty sure for the name, could send a screenshot or entire error if needed). So I put back the old line...

Screenshot 2024-08-17 at 23 39 22

Please let me know if you need more information or if there specific config I should check.

@nan-li
Copy link
Contributor

nan-li commented Aug 18, 2024

Hi @Med5KDB you can also try to explicitly update the OneSignalXCFramework

$ pod repo update
$ pod update OneSignalXCFramework

What react-native-onesignal version are you using?

@Med5KDB
Copy link

Med5KDB commented Aug 18, 2024

Hi @nan-li , thanks for your reply.
I'm using 5.2.1.
I tried to update the OneSignalXCFramework as you suggested but still not working. Following is the kind of error (since it's in red) I'm getting:
[!] No Podfile.lock' found in the project directory, run pod install'. And as you can see the suggested solution is what lead to this issue😅

@nan-li
Copy link
Contributor

nan-li commented Aug 19, 2024

pod repo update updates your local specs from cocoapods, did you then follow the suggestion to run pod install again?

@Med5KDB
Copy link

Med5KDB commented Aug 19, 2024

pod repo update works even if I got a notification telling that a newer version i.e 1.15.0 of CocoaPods is available. The problem is w/ your second suggested command i.e pod update OneSignalXCFramework as I told you above.

@mujehoxe
Copy link

mujehoxe commented Nov 29, 2024

Any fixes yet, i am having this error, none of the above worked

[!] CocoaPods could not find compatible versions for pod "OneSignalXCFramework":
  In Podfile:
    OneSignalXCFramework (< 6.0, >= 5.0)

    react-native-onesignal (from `../node_modules/react-native-onesignal`) was resolved to 4.5.1, which depends on
      OneSignalXCFramework (= 3.12.4)

Specs satisfying the `OneSignalXCFramework (< 6.0, >= 5.0), OneSignalXCFramework (= 3.12.4)` dependency were found, but they required a higher minimum deployment target.

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