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

在使用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)


圖片.png

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


圖片.png
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容