在使用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
网友评论