美文网首页
[!] CocoaPods could not find com

[!] CocoaPods could not find com

作者: 物联白菜 | 来源:发表于2020-11-07 12:04 被阅读0次

    在使用react-native-ffmpeg时,npx pod-install 一直报这个错,根据第三方库的文档中,在ios/Podfile添加了
    pod 'react-native-ffmpeg/video', :podspec => '../node_modules/react-native-ffmpeg/react-native-ffmpeg.podspec'
    之后还是报了以下的错
    [!] CocoaPods could not find compatible versions for pod "react-native-ffmpeg/video": In Podfile: react-native-ffmpeg/video (from ../node_modules/react-native-ffmpeg/react-native-ffmpeg.podspec) Specs satisfying the react-native-ffmpeg/video (from../node_modules/react-native-ffmpeg/react-native-ffmpeg.podspec) dependency were found, but they required a higher minimum deployment target.2020-11-07

    我知道这是版本问题,搞半天,后来在react-native-ffmpeg中的react-native-ffmpeg.podspec发现


    图片.png

    原来是ios版本太低了,根据上面中的至少为11.0
    在ios/Podfile中我原来的是9.0
    改为11.0就可以了


    图片.png

    相关文章

      网友评论

          本文标题:[!] CocoaPods could not find com

          本文链接:https://www.haomeiwen.com/subject/xsvfbktx.html