首页 > 解决方案 > 在 Flutter 项目的项目目录中找不到 `Podfile'

问题描述

即使我有一个 podfile 和一个 podfile.lock,我仍然在项目目录中发现 no `Podfile' 错误。我已经运行了flutter clean、flutter pub get、pod init、flutter build iOS,但仍然收到相同的错误消息。我尝试删除 pod 文件,然后运行命令 sumo gem install cocoapod、pod install,然后 flutter build iOS,但仍然遇到相同的错误。

在这里输入代码

标签: fluttercocoacocoapodsflutter-dependenciesflutter-ios

解决方案


使用以下命令将您的工作目录更改为 ios:

   cd ios

然后运行您想要的任何 pod 命令


推荐阅读