【发布时间】: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 应用中使用内嵌视频吗?