在使用react-native-ffmpeg時(shí),npx pod-install 一直報(bào)這個(gè)錯(cuò),根據(jù)第三方庫的文檔中,在ios/Podfile添加了
pod 'react-native-ffmpeg/video', :podspec => '../node_modules/react-native-ffmpeg/react-native-ffmpeg.podspec'
之后還是報(bào)了以下的錯(cuò)
[!] 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發(fā)現(xiàn)

原來是ios版本太低了,根據(jù)上面中的至少為11.0
在ios/Podfile中我原來的是9.0
改為11.0就可以了
