解决Flutter运行IOS报错:Podfile is out of date

简介: 解决Flutter运行IOS报错:Podfile is out of date

问题描述

Flutter项目很久没有在IOS上跑过了,突然想在ios上运行一下,结果出来以下提示。

Warning: Podfile is out of date
  This 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/Podfile

Error 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...
相关文章
|
2月前
|
iOS开发 MacOS Perl
解决Xcode运行IOS报错:redefinition of module ‘Firebase‘和could not build module ‘CoreFoundation‘
解决Xcode运行IOS报错:redefinition of module ‘Firebase‘和could not build module ‘CoreFoundation‘
115 4
|
2月前
|
缓存 Dart 开发工具
解决Flutter报错The method ‘File.create‘ has fewer named arguments than those of overridden method
解决Flutter报错The method ‘File.create‘ has fewer named arguments than those of overridden method
54 3
|
1月前
|
iOS开发
url中带中文,ios报错问题
url中带中文,ios报错问题
|
2月前
|
XML 安全 Android开发
Flutter配置Android和IOS允许http访问
Flutter配置Android和IOS允许http访问
86 3
|
2月前
|
开发工具 iOS开发
解决Flutter运行报错Could not run build/ios/iphoneos/Runner.app
解决Flutter运行报错Could not run build/ios/iphoneos/Runner.app
120 2
|
2月前
|
iOS开发
IOS编译报错‘ZipArchive.h‘ file not found|Use of undeclared identifier ‘SSZipArchive‘
IOS编译报错‘ZipArchive.h‘ file not found|Use of undeclared identifier ‘SSZipArchive‘
48 1
|
2月前
|
开发工具 iOS开发 容器
【Azure Blob】关闭Blob 匿名访问,iOS Objective-C SDK连接Storage Account报错
【Azure Blob】关闭Blob 匿名访问,iOS Objective-C SDK连接Storage Account报错
|
2月前
解决Flutter报错boxconstraints has non-normalized height/width constraints
解决Flutter报错boxconstraints has non-normalized height/width constraints
36 0
|
2月前
|
Android开发
解决Android、Flutter编译时Gradle报错:javax.net.ssl.SSLException: Connection reset
解决Android、Flutter编译时Gradle报错:javax.net.ssl.SSLException: Connection reset
252 0
|
Android开发
【错误记录】Flutter 运行报错 Error -32000 received from application: There are no running service protocol
【错误记录】Flutter 运行报错 Error -32000 received from application: There are no running service protocol
167 0
【错误记录】Flutter 运行报错 Error -32000 received from application: There are no running service protocol