SolvedCocoaPods No such file or directory @ rb_sysopen -- AppCenter -- ReactNative




/usr/local/bin/pod install


  • What did you do?
    I ran pod install after I upgraded from react native 0.59.10 to v 0.61.1.

  • What did you expect to happen?
    I expected CocoaPods to successfully install the appcenter pod.

  • What happened instead?
    appcenter was not installed and no pod lockfile was generated.


   CocoaPods : 1.8.1
        Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
    RubyGems :
        Host : Mac OS X 10.14.5 (18F132)
       Xcode : 10.3 (10G8)
         Git : git version 2.20.1 (Apple Git-117)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - git - @ d5888bc829f0f05059cc675d47dcef97f52b9ef9
               trunk - CDN -


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


platform :ios, '10.0'

require_relative '../node_modules/react-native-unimodules/cocoapods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'Sonder' do
  # Pods for Sonder
  pod 'appcenter', path: '../node_modules/appcenter/ios/appcenter.podspec'
  pod 'appcenter-analytics', path: '../node_modules/appcenter-analytics/ios'
  pod 'appcenter-crashes', path: '../node_modules/appcenter-crashes/ios'
  pod 'appcenter-push', path: '../node_modules/appcenter-push/ios'
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  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'




Errno::ENOENT - No such file or directory @ rb_sysopen - /Users/connormullins/Sonder/ios/Pods/Local Podspecs/appcenter.podspec.json
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.1/lib/cocoapods-core/specification.rb:646:in `read'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.1/lib/cocoapods-core/specification.rb:646:in `checksum'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.1/lib/cocoapods-core/lockfile.rb:533:in `block in generate_checksums'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.1/lib/cocoapods-core/lockfile.rb:532:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.1/lib/cocoapods-core/lockfile.rb:532:in `generate_checksums'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.1/lib/cocoapods-core/lockfile.rb:428:in `generate'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/installer.rb:744:in `generate_lockfile'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/installer.rb:752:in `write_lockfiles'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/installer.rb:299:in `generate_pods_project'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/installer.rb:173:in `integrate'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/installer.rb:162:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'

AppCenter was not autolinked when I installed it with npm after upgrading to the most recent version of react native. I manually added the import lines to my Podfile. I am positive though that the appcenter.podspec file is present in the path being looked at. No combination of cache clearing, Pod folder deleting, npm installing, or repo-updating has helped me. These are the only suggestions I have found on solving the error No such file or directory @ rb_sysopen

Thanks in advance!

33 Answers

βœ”οΈAccepted Answer

So I updated my appcenter dependencies from v2.4.0 to v2.5.0 and I'm having this issue again πŸ™„

Edit: I found a solution without downgrading cocoapods:

  1. Remove appcenter packages (ex: yarn remove appcenter appcenter-crashes. You may not have to remove them all, just appcenter, but I haven't tested that)
  2. cd ios; pod install; cd ..
  3. Add the appcenter packages again (ex: yarn add appcenter appcenter-crashes)
  4. cd ios; pod install; cd ..

Hope this helps somebody...

Other Answers:

Downgrading to cocoapods 1.7.5 worked for me. Unfortunately you can't downgrade using homebrew, so I uninstalled the brew version and installed the gem:

  1. brew uninstall cocoapods
  2. sudo gem install cocoapods -v 1.7.5

Edit: Please see my later reply for a better solution that doesn't involve downgrading cocoapods

this is a serious issue

one line workaround

npm uninstall appcenter appcenter-crashes -S;cd ios; pod install; cd ..;npm i appcenter appcenter-crashes -S;cd ios; pod install; cd ..;

This issue should not be closed. There is a serious problem that a lot of people are facing.

If it helps anyone, I was also getting this error.

I upgraded from 1.6.1 to 1.8.3 of CocoaPods as it didn't seem to play nice with the latest version (2.4.0) of the AppCenter bindings for React Native. Originally I was getting the following error: microsoft/appcenter-sdk-react-native#726 😩.

I decided I'd downgrade to a version from the 1.7.x branch of CocoaPods after several variations of:

  • Clearing Pods: rm -rf Pods
  • Updating the CocoaPods repo: pod install --repo-update
  • Clearing derived data: rm -rf ~/Library/Developer/Xcode/DerivedData/*
  • Clean build in XCode.

My environment:

  • React Native version: 0.60.5.
  • CocoaPods: 1.7.5.
  • AppCenter: 2.4.0.

Not exactly sure what has changed in CocoaPods between 1.7.x and 1.8.x that could be causing the issue. It's possible that this could be a mixture of React Native 0.61 changes and 1.8.x of CocoaPods.

More Issues: