小编aar*_*hi 的帖子

flutter 错误无效的`Podfile` 文件:没有将 nil 隐式转换为 String。我搜索了讨论,但我似乎无法解决问题

这是我收到的错误。我尝试了 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)

xcode ios dart flutter

27
推荐指数
2
解决办法
9525
查看次数

标签 统计

dart ×1

flutter ×1

ios ×1

xcode ×1