【发布时间】:2022-11-09 19:49:42
【问题描述】:
我试图在 iOS 端安装 Flutter 项目..但我无法在 iOS 端安装 pod
its error show
[!] Invalid Podfile file: no implicit conversion of nil into String.
【问题讨论】:
标签: cocoapods flutter-dependencies
我试图在 iOS 端安装 Flutter 项目..但我无法在 iOS 端安装 pod
its error show
[!] Invalid Podfile file: no implicit conversion of nil into String.
【问题讨论】:
标签: cocoapods flutter-dependencies
通过删除 ios 文件夹中的 Podfile 和 Podfile.lock 来修复它,然后运行:
flutter run
或者
flutter build ios
这样flutter将为flutter生成新的Podfile
【讨论】:
Podfile 文件:没有将 nil 隐式转换为字符串。 # 来自 /Users/atpl/Documents/insuranceflutter/ios/Podfile:57 # --------------------------------- ---------- # 除非 File.exist?(copied_framework_path) > FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), mapped_flutter_dir) # end # -------- ------------------------------------user18710300