- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
升级flutter后尝试用模拟器测试flutter项目时,出现了这个错误。
Launching lib/main.dart on iPhone 11 Pro in debug mode...
Running pod install... 1.1s
CocoaPods' output:
↳
[!] Invalid `Podfile` file: cannot load such file -- /Volumes/WD /DEVELOPER/flutter/packages/flutter_tools/bin/podhelper.
# from /Volumes/WD/DEVELOPER/dont_forget/ios/Podfile:26
# -------------------------------------------
#
> require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
#
# -------------------------------------------
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/podfile.rb:318:in `rescue in block in from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/podfile.rb:312:in `block in from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/podfile.rb:50:in `instance_eval'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/podfile.rb:50:in `initialize'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/podfile.rb:310:in `new'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/podfile.rb:310:in `from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/podfile.rb:276:in `from_file'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/config.rb:205:in `podfile'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/command/install.rb:46:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
Error running pod install
Error launching application on iPhone 11 Pro.
Exited (sigterm)
我尝试了 flutter clean
、flutter build iOS
、rm iOS/Podfile
,但它根本不起作用。我该如何解决这个问题?下面是我的 flutter doctor
和 flutter --version
。
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.5 19F101, locale en-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.48.1)
[✓] Connected device (1 available)
• No issues found!
Flutter 1.20.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision bbfbf1770c (10 days ago) • 2020-08-13 08:33:09 -0700
Engine • revision 9d5b21729f
Tools • Dart 2.9.1
最佳答案
从终端运行:
flutter clean
flutter 发布获取
pod install
//cd 进入 ios 文件夹
关于ios - 无效的 `Podfile` 文件 : cannot load such file./flutter/packages/flutter_tools/bin/podhelper,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63544427/
我在运行应用程序时遇到问题。 我的 flutter 细节是: Flutter 版本:1.12.13+hotfilx.9 Doctor summary (to see all details, run
我从 Xcode 运行我的 Flutter 项目,结果出现错误,所以我查看了 stackoverflow 中的另一篇文章,我读到“现在为了找到 xcode_backend.sh 需要定义 FLUTTE
版本解析失败。错误:无法“发布升级”flutter 工具。 在我从 Github fork 示例之后。我尝试在 VScode 上运行命令“get packages”。酒吧升级 --force 和“fl
升级flutter后尝试用模拟器测试flutter项目时,出现了这个错误。 Launching lib/main.dart on iPhone 11 Pro in debug mode... Runn
我正在尝试在 Flutter 中编译我的应用程序,但是当我这样做时,我在控制台中收到以下错误。我尝试运行 flutter clean 然后运行 flutter pub get 但它似乎不起作用 警
这个问题看起来与许多其他问题相似,但唯一的变化是“line: 1070”。其他问题中的许多其他行。 我尝试了很多解决方案:删除 android 文件夹,重新创建它,同样的事情发生了。重新安装flutt
FAILURE:构建失败,出现异常。 哪里: 脚本 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' 行:991 出了什么问题
我正在尝试在 android 模拟器中运行该应用程序,但此错误不断弹出。 FAILURE: Build failed with an exception. * Where: Script 'C
我是一名优秀的程序员,十分优秀!