-
-
Save sjchmiela/6c079f2173938a9a61a7c6f053c45000 to your computer and use it in GitHub Desktop.
platform :ios, '10.0' | |
require_relative '../node_modules/react-native-unimodules/cocoapods.rb' | |
# don't just copy and paste this, notice that the target names should align with what is already in your Podfile | |
target 'YourAppNameHere' do | |
pod 'React', :path => '../node_modules/react-native', :subspecs => [ | |
'Core', | |
'CxxBridge', | |
'DevSupport', | |
'RCTText', | |
'RCTNetwork', | |
'RCTWebSocket', | |
'RCTAnimation', | |
'RCTImage', | |
] | |
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' | |
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' | |
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' | |
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' | |
use_unimodules! | |
target 'YourAppNameHereTests' do | |
inherit! :search_paths | |
end | |
end |
How can I get the Podfile working for react native version 0.59?
I have added the following to my Podfile:
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
use_unimodules
Here is the error I ran into on pod install:
[!] CocoaPods could not find compatible versions for pod "UMTaskManagerInterface":
In Podfile:
UMTaskManagerInterface (from ../node_modules/unimodules-task-manager-interface/ios)
Specs satisfying the UMTaskManagerInterface (from ../node_modules/unimodules-task-manager-interface/ios) dependency were found, but they required a higher minimum deployment target.
@smruti96 hi Do you found the solution? I get error while running pod install too after i change platform :ios, '10.0'. RN0.59
[!] Unable to find a specification for React-Core
depended upon by UMReactNativeAdapter
You have either:
- out-of-date source repos which you can update with
pod repo update
or withpod install --repo-update
. - mistyped the name or version.
- not added the source repo that hosts the Podspec to your Podfile.
Hello, I'm facing the exact same problem as @nolife08021. Any ideas on how to fix it? Thx
I manage to work around this error by downgrading the version of react-native-unimodules to 0.6.0. It seems that there is an issue with version 0.7.0
@apostolou try these versions too, see how high you can go before the error occurs again ^0.7.0-rc.1
^0.7.0-rc.2
^0.7.0-rc.3
^0.7.0-rc.4
Have the same issues as @apostolou. 0.6.0
worked, but starting from 0.7.0-rc.1
have the same error as @nolife08021.
To get the Podfile working with
react-native 0.60.5
I needed to make these changes:platform :ios, '10.0'
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
use_unimodules!
As a result my Podfile now looks like this:
Running a
pod install --repo-update
then seemed to work (albeit took an age to install...)