[!] CocoaPods could not find compatible versions for pod "react-native-ffmpeg/video": In Podfil...

在使用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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。