【问题标题】:Error while integrating RN FFMPEG in react native在本机反应中集成 RN FFMPEG 时出错
【发布时间】:2020-03-25 15:14:15
【问题描述】:
**[!] There are multiple dependencies with different sources for `react-native-ffmpeg` in `Podfile`:
- react-native-ffmpeg (from `../node_modules/react-native-ffmpeg/ios`)
- react-native-ffmpeg (from `../node_modules/react-native-ffmpeg/ios/react-native-ffmpeg.podspec`)**

收到此错误。

- react-native-ffmpeg (from `../node_modules/react-native-ffmpeg/ios/react-native-ffmpeg.podspec`)

我在 podfile 中需要这个,但之前的

  • react-native-ffmpeg(来自../node_modules/react-native-ffmpeg/ios) 甚至没有出现在我的 podfile 中。

当我尝试添加路径时,它会抛出错误。请帮忙

【问题讨论】:

    标签: ios react-native ffmpeg podfile


    【解决方案1】:

    您需要在 use_native_modules 之前添加 pod 规范!行,如他们的文档中所述。 https://awesomeopensource.com/project/tanersener/react-native-ffmpeg

    target 'MyApp' do
      pod 'react-native-ffmpeg/audio', :podspec => '../node_modules/react-native-ffmpeg/react-native-ffmpeg.podspec'
    
      config = use_native_modules!
    
      use_react_native!(:path => config["reactNativePath"])
    end
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-16
      • 1970-01-01
      • 1970-01-01
      • 2022-06-11
      • 1970-01-01
      相关资源
      最近更新 更多