在我升级Flutter 翼之后,我收到了这个错误.在升级之前,iOS和Android上的一切都运行正常.现在我的项目不是用iOS构建的.

下面是我的航站楼信息.

pod 设置——冗长

    WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:

export LANG=en_US.UTF-8

Pod安装--详细

WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:

export LANG=en_US.UTF-8

[!] No `Podfile' found in the project directory.


/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:151:in `verify_podfile_exists!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/command/install.rb:46:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'

区域设置

LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

推荐答案

最后,我用以下步骤解决了这个问题

  1. 导出语言=EN_US.UTF-8
  2. 在Xcode中打开项目并清理
  3. 已在Mac终端中打开iOS文件夹并运行Pod安装
  4. 它给了我使用ios 9.0的热情,所以我把它更新到了10.0
  5. RAN flutter build ios
  6. 项目生成成功
  7. 在XODE中打开Runner.xcworkspace
  8. 点击Run-这次Xcode再次自动安装Pod

并且解决了.

Flutter相关问答推荐

如何创建一个按钮来在Ffltter Webview中转到上一页?

无法将Flutter 连接到Firebase

在Flutter 中创建自定义Snackbar类

Flutter BLoC et workmanager:如何创建独特的仓库初始化模式?

在setState之后,Ffltter ListView.Builder未更新

如何知道当前屏幕是否处于抖动状态?

我想创建一个可滚动的堆叠列表项,每个项都朝向屏幕

运行调试flutter应用程序时出错:B/BL超出范围(最大+/-128MB)到'';

点击按钮后重新启动定时器

Flutter firebase_auth 和 firebase_core 依赖错误

Flutter - 如何将按钮对齐到行的右侧

使用 Riverpod 和 copyWith 方法更新数据类中列表中变量的值

如何在 flutter 中使用带有有效负载数据的重定向来执行 firebase 推送通知.?

flutter - 无法解析 JSON 消息:文档为空

按下 Command+W 时关闭窗口

为什么 orientation == Orientation.portrait 总是正确的,尽管我的设备已经处于横向

Flutter - 异步文件读取异常处理

Flutter Web App 未启动:脚本的 MIME 类型不受支持

如何从我的Flutter 项目中删除错误?

如何从 MemoryFileSystem 字节创建假 dart:io 文件?