解决Flutter运行IOS报错:Podfile is out of date
生活随笔
收集整理的這篇文章主要介紹了
解决Flutter运行IOS报错:Podfile is out of date
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題描述
Flutter項目很久沒有在IOS上跑過了,突然想在ios上運行一下,結果出來以下提示。
Warning: Podfile is out of dateThis can cause issues if your application depends on plugins that do not support iOS or macOS.See https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms for details.If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/45197 for instructions. To regenerate the Podfile, run:rm ios/PodfileError launching application on iPhone 12 Pro Max.解決方案
根據提示,Podfile中一些依賴過期了。刪除Podfile文件,再次運行會自動生成最新的podfile.
myMacBook-Pro:pic-editor ado$ rm ios/Podfile運行后,耐心等待build完成。
Launching lib/main.dart on iPhone 12 Pro Max in debug mode... Running pod install... Running Xcode build... Xcode build done. 203.4s Debug service listening on ws://127.0.0.1:52091/8oreY9SFHj0=/ws Syncing files to device iPhone 12 Pro Max...總結
以上是生活随笔為你收集整理的解决Flutter运行IOS报错:Podfile is out of date的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 九九乘法表java代码_java怎么实现
- 下一篇: 大意导致Java访问DB2库时导出SQL