【问题标题】:Error running Flutter App运行 Flutter 应用程序时出错
【发布时间】:2019-01-18 20:43:09
【问题描述】:

我正在 Flutter 上开发一个应用程序,但是当我在模拟器中运行它来模拟它时,IntelliJIdea 给了我以下错误:

Error output from CocoaPods: ↳ Ignoring bindex-0.5.0 because its extensions are not built. Try: gem pristine bindex --version 0.5.0 Ignoring bootsnap-1.3.1 because its extensions are not built. Try: gem pristine bootsnap --version 1.3.1 Ignoring byebug-10.0.2 because its extensions are not built. Try: gem pristine byebug --version 10.0.2 [33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding. Consider adding the following to ~/.profile:

    export LANG=en_US.UTF-8
    [0m
Ignoring ffi-1.9.25 because its extensions are not built.  Try: gem pristine ffi --version 1.9.25
Ignoring gem-wrappers-1.4.0 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.4.0
Ignoring msgpack-1.2.4 because its extensions are not built.  Try: gem pristine msgpack --version 1.2.4
Ignoring puma-3.12.0 because its extensions are not built.  Try: gem pristine puma --version 3.12.0
Ignoring sqlite3-1.3.13 because its extensions are not built.  Try: gem pristine sqlite3 --version 1.3.13

[!] Automatically assigning platform `ios` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Error running pod install

Error launching application on iPhone X.

谁能帮忙提点建议?

谢谢

【问题讨论】:

  • 你使用“flutter run”命令吗?我相信不知何故另一个命令正在运行。我认为您的项目配置错误。
  • @yamin 感谢您的建议,不,我正在尝试从 IntelliJIDEA 运行颤振
  • @Shahsayyad 你能试试flutter run吗? (并将结果添加到您的问题中,最好使用-v 进行详细输出,这很可能会显示错误)
  • @creativecreatorormaybenot 我做了什么,Cocoapod 错误停止了。我在 Podfile 中取消了 #use_frameworks! 的注释,错误停止了,Android Studio 给了我一个构建。该应用程序运行顺利,但我担心这不会产生额外的看不见的错误。
  • 朋友们知道如何在 Flutter 应用中使用内嵌视频吗?

标签: mobile dart flutter


【解决方案1】:

通过在 Podfile 中取消注释 use_frameworks,我能够解决这个特殊问题。

【讨论】:

    猜你喜欢
    • 2019-04-02
    • 2021-08-25
    • 1970-01-01
    • 1970-01-01
    • 2022-06-25
    • 2019-02-24
    • 2020-08-24
    • 2021-06-26
    • 1970-01-01
    相关资源
    最近更新 更多