如何解决“错误运行Pod安装"问题?在Mac上颤抖吗? [英] How to solve "error running pod install" in flutter on mac?

查看:92
本文介绍了如何解决“错误运行Pod安装"问题?在Mac上颤抖吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在iPhone上启动我的项目时出现错误,基本的Flutter示例正在我的iPhone上运行,但是当我使用我的项目时出现此错误.

I have an error when I tried to launch my project on my iPhone, the basic Flutter example is working on my iPhone but when I use my project I have this error.

推荐答案

当我们更改任何插件版本或Flutter pub软件包时,就会发生这种情况.

This happens when we change any plugins versions or flutter pub package.

我遇到了类似的错误,所以我使用了很多不同的东西,但仍然没有发生任何事情,但最终我得到了一个精确的解决方案.对于该解决方案,请按照以下步骤操作

I was getting a similar error, so I used many different things but still nothing happened but finally I got an exact solution For the solution follow the below steps

  1. 从ios文件夹中删除 podfile.lock 文件.

打开终端,转到ios文件夹目录,然后运行 pod install .安装可能需要一些时间.

Open the terminal, go to the ios folder directory and run pod install. It could take some time to install.

如果 pod install 出现任何错误,请尝试

If pod install gives any error then try this

pod install --repo-update 

  • 完成所有操作后,再次运行您的项目

  • After everything is done run your project again

    flutter run
    

  • 参考:- 查看全文

    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆