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

CocoaPods could not find compatible versions for pod "OneSignal" #693

Closed
cfmitrah opened this issue Dec 21, 2018 · 4 comments
Closed

CocoaPods could not find compatible versions for pod "OneSignal" #693

cfmitrah opened this issue Dec 21, 2018 · 4 comments

Comments

@cfmitrah
Copy link

Description:

In android the integration was successful. however in iOS after adding below line in podfile
pod 'react-native-onesignal',
:path => "../node_modules/react-native-onesignal/react-native-onesignal.podspec",
:inhibit_warnings => true

I am getting this error after pod install
[!] CocoaPods could not find compatible versions for pod "OneSignal":
In Podfile:
react-native-onesignal (from ../node_modules/react-native-onesignal/react-native-onesignal.podspec) was resolved to 3.2.12, which depends on
OneSignal (= 2.9.4)

None of your spec sources contain a spec satisfying the dependency: OneSignal (= 2.9.4).

Environment

  1. "react-native-onesignal": "^3.2.12"
  2. added it using npm and linking it with cocoapods

Steps to Reproduce Issue:

1.npm install --save react-native-onesignal
2. add this line to pod file
pod 'react-native-onesignal',
:path => "../node_modules/react-native-onesignal/react-native-onesignal.podspec",
:inhibit_warnings => true
3. run 'pod install'

Anything else:

(crash stacktraces, as well as any other information here)

@Nightsd01
Copy link
Contributor

@cfmitrah Please try to cd into the /ios directory and run pod repo update.

If that does not work, please post your Podfile

@Nightsd01
Copy link
Contributor

Closing due to no response

@jake-tobin
Copy link

for any fellow travelers,
-->> OneSignal/OneSignal-Flutter-SDK#55 (comment)

@ldco2016
Copy link

ldco2016 commented Oct 4, 2019

@Nightsd01 ,

I am getting this error:

[!] CocoaPods could not find compatible versions for pod "OneSignal":
 In Podfile:
 react-native-onesignal (from `../node_modules/react-native-onesignal`) was resolved to 3.4.2, which depends on
 OneSignal (= 2.11.2)
 
/bin/bash failed with return code: 31
return code: 1
None of your spec sources contain a spec satisfying the dependency: `OneSignal (= 2.11.2)`.
 
You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.
 
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

When I run the following commands in Azure DevOps:

cd ios && rm Podfile.lock && pod deintegrate && cd .. && rm -rf node_modules && rm package-lock.json && npm install && cd ios/ && pod install && pod repo update

Is this too aggressive? Do I not need to run rm Podfile.lock && pod deintegrate? Would pod install be sufficient for a CI build tool configuration?

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

4 participants