Alejandro Gonzalez
Alejandro Gonzalez

Reputation: 1371

update react native from 0.59 to 0.64.2 ---- - No such file or directory @ rb_sysopen

I am trying to update the react native application from 0.59 to 0.64, it is in 0.59, it permits to do pod install.

The result when i execute the pod install with the 0.59 version

local@test xcode % pod deintegrate Deintegrating test.xcodeproj Deleted 1 'Copy Pods Resources' build phases. Deleted 1 'Check Pods Manifest.lock' build phases. Deleted 1 'Embed Pods Frameworks' build phases.

Project has been deintegrated. No traces of CocoaPods left in project. Note: The workspace referencing the Pods project still remains. local@test xcode %

Pod install

local@test ios % pod install Auto-linking React Native modules for target test_app: BVLinearGradient, RNDeviceInfo, RNFS, RNGestureHandler, RNPermissions, RNReanimated, RNScreens, react-native-adjust, react-native-dynatrace, react-native-safe-area-context, and react-native-webview Analyzing dependencies Downloading dependencies Generating Pods project

Integrating client project Pod installation complete! There are 60 dependencies from the Podfile and 52 total pods installed.

[!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via pod repo remove master. To suppress this warning please add warn_for_unused_master_specs_repo => false to your Podfile.

Now The 0.64 version generates the next

Pod install

local@test xcode % pod install Analyzing dependencies Fetching podspec for Folly from ./Libraries/react-native/third-party-podspecs/Folly.podspec

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/usr/local/Cellar/cocoapods/1.10.1_1/libexec/bin/pod install

Report

Stack

   CocoaPods : 1.10.1
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
    RubyGems : 3.0.3
        Host : Mac OS X 10.15.7 (19H15)
       Xcode : 12.2 (12B45b)
         Git : git version 2.24.3 (Apple Git-128)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ 3d73ef307c2c254ec6e2548eacc35d461958bfa0

               test.local-framework-pod-specs - git - http://test.local/framework/pod-specs.git @ 56f9f70f6160741426743b240f58847c105d6c78

               trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0

Error

Errno::ENOENT - No such file or directory @ rb_sysopen -
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open-uri.rb:37:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open-uri.rb:37:in `open'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open-uri.rb:37:in `open'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/external_sources/podspec_source.rb:19:in `block in fetch'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:86:in `titled_section'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/external_sources/podspec_source.rb:11:in `fetch'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:989:in `fetch_external_source'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:968:in `block (2 levels) in fetch_external_sources'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:967:in `each'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:967:in `block in fetch_external_sources'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:966:in `fetch_external_sources'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:117:in `analyze'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/bin/pod:23:in `load'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory+%40+rb_sysopen+-

If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods... Found no similar issues. To create a new issue, please visit: https://github.com/cocoapods/cocoapods/issues/new

The podfile

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

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

  # Pods for Test
  pod 'CardIO' #5.4.1 version
  # dependences base react
  pod 'React', :path => './Libraries/react-native', :subspecs => [
    'Core',
    'CxxBridge', # Include this for RN >= 0.47
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
    'RCTText',
    'RCTImage',
    'RCTNetwork',
    'RCTWebSocket',
    'RCTLinkingIOS',
    'RCTAnimation',
    # needed for debugging
  # Add any other subspecs you want to use in your project
  ]
  pod 'yoga', :path => './Libraries/react-native/ReactCommon/yoga'
  pod 'DoubleConversion', :podspec => './Libraries/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => './Libraries/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => './Libraries/react-native/third-party-podspecs/Folly.podspec'
  # dependences react
  pod 'RNGestureHandler', :path => './Libraries/react-native-gesture-handler'
  pod 'BVLinearGradient', :path => './Libraries/react-native-linear-gradient'
  
  pod 'RNDeviceInfo', :path => './Libraries/react-native-device-info'
  pod 'RNFS', :path => './Libraries/react-native-fs'
  pod 'RNPermissions', :path => './Libraries/react-native-permissions'
  pod 'Permission-Camera', :path => './Libraries/react-native-permissions/ios/Camera.podspec'
  
  pod 'react-native-webview', :path => './Libraries/react-native-webview'
  # Adjust

  pod 'react-native-adjust', :path => './Libraries/react-native-adjust'
  target 'TestTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'TestUITests' do
    # Pods for testing
  end

end

Project

Upvotes: 1

Views: 5804

Answers (1)

Alejandro Gonzalez
Alejandro Gonzalez

Reputation: 1371

I fixed the error.

If someone has the problem, you should do the next

In the 0.59 version uses the next

pod 'Folly', :podspec => './Libraries/react-native/third-party-podspecs/Folly.podspec'

But it has changed the next library

  # The prefix to react-native
  prefix =  "./Libraries/react-native"
  options={}
  
  # Include DevSupport dependency
  production = options[:production] ||= false

pod 'RCT-Folly', :podspec => "#{prefix}/third-party-podspecs/RCT- 
Folly.podspec"

Podfile

   The prefix to react-native
   prefix =  "./Libraries/react-native"
   options={}

    # dependences base react 
pod 'FBLazyVector', :path => "#{prefix}/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "#{prefix}/React/FBReactNativeSpec"
pod 'RCTRequired', :path => "#{prefix}/Libraries/RCTRequired"
pod 'RCTTypeSafety', :path => "#{prefix}/Libraries/TypeSafety"
pod 'React', :path => "#{prefix}/"
pod 'React-Core', :path => "#{prefix}/"
pod 'React-CoreModules', :path => "#{prefix}/React/CoreModules"
pod 'React-RCTActionSheet', :path => "#{prefix}/Libraries/ActionSheetIOS"
pod 'React-RCTAnimation', :path => "#{prefix}/Libraries/NativeAnimation"
pod 'React-RCTBlob', :path => "#{prefix}/Libraries/Blob"
pod 'React-RCTImage', :path => "#{prefix}/Libraries/Image"
pod 'React-RCTLinking', :path => "#{prefix}/Libraries/LinkingIOS"
pod 'React-RCTNetwork', :path => "#{prefix}/Libraries/Network"
pod 'React-RCTSettings', :path => "#{prefix}/Libraries/Settings"
pod 'React-RCTText', :path => "#{prefix}/Libraries/Text"
pod 'React-RCTVibration', :path => "#{prefix}/Libraries/Vibration"
pod 'React-Core/RCTWebSocket', :path => "#{prefix}/"

unless production
  pod 'React-Core/DevSupport', :path => "#{prefix}/"
end

pod 'React-cxxreact', :path => "#{prefix}/ReactCommon/cxxreact"
pod 'React-jsi', :path => "#{prefix}/ReactCommon/jsi"
pod 'React-jsiexecutor', :path => "#{prefix}/ReactCommon/jsiexecutor"
pod 'React-jsinspector', :path => "#{prefix}/ReactCommon/jsinspector"
pod 'React-callinvoker', :path => "#{prefix}/ReactCommon/callinvoker"
pod 'React-runtimeexecutor', :path => "#{prefix}/ReactCommon/runtimeexecutor"
pod 'React-perflogger', :path => "#{prefix}/ReactCommon/reactperflogger"
pod 'ReactCommon/turbomodule/core', :path => "#{prefix}/ReactCommon"
pod 'Yoga', :path => "#{prefix}/ReactCommon/yoga", :modular_headers => true

pod 'DoubleConversion', :podspec => "#{prefix}/third-party-podspecs/DoubleConversion.podspec"
pod 'glog', :podspec => "#{prefix}/third-party-podspecs/glog.podspec"
pod 'RCT-Folly', :podspec => "#{prefix}/third-party-podspecs/RCT-Folly.podspec"

if fabric_enabled
  pod 'React-Fabric', :path => "#{prefix}/ReactCommon"
  pod 'React-graphics', :path => "#{prefix}/ReactCommon/react/renderer/graphics"
  pod 'React-jsi/Fabric', :path => "#{prefix}/ReactCommon/jsi"
  pod 'React-RCTFabric', :path => "#{prefix}/React"
  pod 'RCT-Folly/Fabric', :podspec => "#{prefix}/third-party-podspecs/RCT-Folly.podspec"
end

if hermes_enabled
  pod 'React-Core/Hermes', :path => "#{prefix}/"
  pod 'hermes-engine', '~> 0.7.2'
  pod 'libevent', '~> 2.1.12'
end

Upvotes: 3

Related Questions