Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

CocoaPods could not find compatible versions for pod "React"

$
0
0

After months of working my React Native project has just stopped building.

I'm getting this error message in Cocoapods (and in Xcode):

ios % pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "React":
  In Podfile:
    RNDeviceInfo (from `../node_modules/react-native-device-info`) was resolved to 2.3.2, which depends on
  React

react-native-onesignal (from `../node_modules/react-native-onesignal/react-native-onesignal.podspec`) was resolved to 3.5.0, which depends on
  React (< 1.0.0, >= 0.13.0)

Specs satisfying the `React, React (< 1.0.0, >= 0.13.0)` dependency were found, but they required a higher minimum deployment target.

Here are the versions I am using:

% cat package.json | grep \"react\""react": "16.8.3",
% cat package.json | grep \"react-native\""react-native": "0.59.5",
% cat package.json | grep \"react-native-onesignal\""react-native-onesignal": "^3.5.0",

In Xcode the deployment target for my project is 11.0 and 10.2 for my NotificationServiceExtension (for OneSignal). The error message suggests this deployment target should be higher now, but what?

The important parts of my Podfile look like this:

ios % cat Podfile 
# Uncomment the next line to define a global platform for your project
platform :ios, '10.3'

target 'NotificationServiceExtension' do
  # Comment the next line if you don't want to use dynamic frameworks
  # use_frameworks!

  # Pods for NotificationServiceExtension
  pod 'OneSignal', '>= 2.7.1', '< 3.0'

end

target 'myproject' do
  # Comment the next line if you don't want to use dynamic frameworks
  # use_frameworks!

  pod 'OneSignal', '>= 2.7.1', '< 3.0'

I'm not sure how to resolve this and if it is related but this all went wrong after the last iOS/Xcode update.


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>