flutter - 在 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,但仍然遇到相同的错误。
解决方案
使用以下命令将您的工作目录更改为 ios:
cd ios
然后运行您想要的任何 pod 命令
推荐阅读
- python - 如何使用 python-selenium 在弹出窗口中单击按钮
- ios - 在 SwiftUI 中将 Int / Double 与 TextField 绑定需要返回键
- python - 在 Heroku 上部署音频预测模型时出现“OSError: sndfile library not found”和“Unable to locate package libsndfile1”错误
- javascript - PHP / SQL:使用选择选项多次删除数据
- azure - Azure 中同一 AD 中创建的用户进行资源隔离
- corda - R3- 没有公证人签名的 Corda 交易
- sql-server - 为持久化计算列简化 T-SQL 用户函数
- javascript - 从文件夹中随机播放视频文件,递归查看所有目录结构树
- ruby-on-rails - 导轨。如何通过类别创建关联?
- python - Python:循环编写csv文件(迭代方式)