tanersener / react-native-ffmpeg

FFmpeg for react-native. Not maintained anymore. Superseded by FFmpegKit.
GNU General Public License v3.0
400 stars 51 forks source link

0.4.4 Issue when running `pod install` #143

Closed baughmann closed 4 years ago

baughmann commented 4 years ago

Hello, me again. Once again, thank you for this amazing library.

Description pod install fails with the attached error when upgrading to 0.4.4 from 0.4.3

Expected behavior pod install to succeed as it did with 0.4.4

Current behavior See description.

Screenshots No screenshots available.

Logs

nick@Nicks-iMac ios % pod install
Detected React Native module pods for RNCAsyncStorage, RNCMaskedView, RNFS, RNGestureHandler, RNPermissions, RNReanimated, RNSVG, RNScreens, ReactNativeDarkMode, and react-native-safe-area-context
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Fetching podspec for `react-native-ffmpeg` from `../node_modules/react-native-ffmpeg/ios/react-native-ffmpeg.podspec`

Command

/usr/local/Cellar/cocoapods/1.9.0/libexec/bin/pod install

Report

* What did you do?

* What did you expect to happen?

* What happened instead?

Stack

   CocoaPods : 1.9.0
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
    RubyGems : 3.0.3
        Host : Mac OS X 10.15.3 (19D76)
       Xcode : 11.3.1 (11C504)
         Git : git version 2.21.1 (Apple Git-122.3)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : 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.4.1
cocoapods-try         : 1.1.0

Podfile

platform :ios, '10.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'MyApp' do
  # Pods for MyApp
  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'

  # permissions for react-native-permissions
  permissions_path = '../node_modules/react-native-permissions/ios'
  pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"
  pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone.podspec"
  # for manually setting an LTS release to support more hardware
  pod 'react-native-ffmpeg/https-lts', :podspec => '../node_modules/react-native-ffmpeg/ios/react-native-ffmpeg.podspec'

  target 'MyAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

  use_native_modules!
end

target 'MyApp-tvOS' do
  # Pods for MyApp-tvOS

  target 'MyApp-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

Error

Errno::ENOENT - No such file or directory @ rb_sysopen - /Users/nick/Projects/react-native/MyApp/node_modules/react-native-ffmpeg/ios/react-native-ffmpeg.podspec
/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.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/external_sources/podspec_source.rb:19:in block in fetch
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/user_interface.rb:86:in titled_section
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/external_sources/podspec_source.rb:11:in fetch
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/installer/analyzer.rb:980:in fetch_external_source
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/installer/analyzer.rb:959:in block (2 levels) in fetch_external_sources
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/installer/analyzer.rb:958:in each
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/installer/analyzer.rb:958:in block in fetch_external_sources
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/user_interface.rb:64:in section
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/installer/analyzer.rb:957:in fetch_external_sources
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/installer/analyzer.rb:117:in analyze
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/installer.rb:410:in analyze
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/installer.rb:235:in block in resolve_dependencies
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/user_interface.rb:64:in section
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/installer.rb:234:in resolve_dependencies
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/installer.rb:156:in install!
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/command/install.rb:52:in run
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/claide-1.0.3/lib/claide/command.rb:334:in run
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/lib/cocoapods/command.rb:52:in run
/usr/local/Cellar/cocoapods/1.9.0/libexec/gems/cocoapods-1.9.0/bin/pod:55:in <top (required)>
/usr/local/Cellar/cocoapods/1.9.0/libexec/bin/pod:23:in load
/usr/local/Cellar/cocoapods/1.9.0/libexec/bin/pod:23:in <main>

This appears to be the important part:

[!] 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+-+%2FUsers%2Fnick%2FProjects%2Freact-native%2FMyApp%2Fnode_modules%2Freact-native-ffmpeg%2Fios%2Freact-native-ffmpeg.podspec&type=Issues

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

Environment

Dependencies

"dependencies": {
    "@react-native-community/async-storage": "^1.7.1",
    "@react-native-community/masked-view": "^0.1.6",
    "@react-navigation/native": "^5.0.0-alpha.29",
    "@react-navigation/stack": "^5.0.0-alpha.63",
    "@types/styled-components": "^4.4.2",
    "@types/uuid": "^3.4.6",
    "react": "16.9.0",
    "react-native": "0.61.5",
    "react-native-dark-mode": "^0.2.2",
    "react-native-draggable-flatlist": "^2.2.0",
    "react-native-ffmpeg": "0.4.4",
    "react-native-fs": "^2.16.2",
    "react-native-gesture-handler": "^1.5.3",
    "react-native-permissions": "^2.0.9",
    "react-native-reanimated": "^1.7.0",
    "react-native-safe-area-context": "^0.6.2",
    "react-native-screens": "^2.0.0-alpha.25",
    "react-native-svg": "^10.1.0",
    "react-native-use-database": "^0.1.2",
    "react-use-queue": "^0.1.1",
    "react-use-timer": "^0.1.5",
    "uuid": "^3.4.0"
  },

Other

I've got a hunch that it has to do with my use of https-lts. Al I using this wrong? What changed from 0.4.3?

tanersener commented 4 years ago

Hi @baughmann. podspec file path used to define iOS packages is changed in v0.4.4. You need to remove /ios part from the path. Please see 2.3.2 iOS section.

baughmann commented 4 years ago

@tanersener My apologies, I didn't even notice! Thank you.