这是我收到的错误。我尝试了 flutter clean 并更改了一些行的语法,但我是 dart 和 flutter 的新手,所以我不太确定。我也重新安装了可可豆荚和红宝石,但我收到了同样的错误。我还确保将 ruby 更新到最新版本。
[!] Invalid `Podfile` file: no implicit conversion of nil into String.
# from /Users/(name)/Downloads/Projects/doctor_consultation_app/ios/Podfile:57
# -------------------------------------------
# unless File.exist?(copied_framework_path)
> FileUtils.cp(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
# end
# -------------------------------------------
Run Code Online (Sandbox Code Playgroud)
这是我的 pod 文件。
[!] Invalid `Podfile` file: no implicit conversion of nil into String.
# from /Users/(name)/Downloads/Projects/doctor_consultation_app/ios/Podfile:57
# -------------------------------------------
# unless File.exist?(copied_framework_path)
> FileUtils.cp(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
# end
# -------------------------------------------
Run Code Online (Sandbox Code Playgroud)