首页 > 其他分享 >Flutter CocoaPods 报错

Flutter CocoaPods 报错

时间:2023-11-13 15:47:41浏览次数:22  
标签:git 报错 https trunk CocoaPods Flutter

报错如下

Warning: CocoaPods not installed. Skipping pod install. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. Exception: CocoaPods not installed or not in valid state

提示是 CocoaPods not installed.

  • 执行 pod 可以的~
  • 执行
flutter run  
  • 报错 CDN timeout
....
CDN: trunk URL couldn't be downloaded:https://cdn.jsdelivr.net/cocoa/Specs/c/0/4/Flutter/1.0.0/Flutter.podspec.json timeout
....

其实 xcode 是可以执行的 就是CDN超时

  • 还是墙的问题
  • 直接删除 trunk
    rm -rf  ~/.cocoapods/repos/trunk             
   git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git  ~/.cocoapods/repos/trunk 
    pod setup
   cd $project/macos
   flutter run

标签:git,报错,https,trunk,CocoaPods,Flutter
From: https://www.cnblogs.com/guanchaoguo/p/17829286.html

相关文章

  • Git push到gerrit时报错change xxx closed
    Gitpush到gerrit时报错changexxxclosed报错日志:Tossh://xxxx![remoterejected]HEAD->refs/for/master(changehttp://xxxxm/+/96107closed)可以看到这个提交已经closed了,而change-Id未更改。即使用了已经合入的change-Id,在一次push的时候远端判断此change-Id......
  • CentOS 7.9 防火墙启动报错--Process: 12848 ExecStart=/usr/sbin/firewalld --nofork
    原因:配置防火墙策略过程中,多次启停防火墙,导致防火墙启动报错报错截图: 排查:python版本是一致的,有一个遗留的防火墙进程防火墙正常关闭后没有这个进程 解决办法:杀掉这个进程,启动防火墙  ......
  • IDEA新建SpringBoot项目突然报错问题的解决
    问题描述在我使用IDEA新建SpringBoot项目时,突然出现这个错误:之前也是一直这么新建项目,这次突然出现这样的错误,哎呦,我真服啦~问题解决就是说吧,在我看了网上解决问题的教程之后,发现都没有问题,然后我就不死心地又试了试,发现就成功创建了,具体怎么解决的,我确实是不太清楚了。......
  • 解决composer报错curl error 60问题
    今天安装Thinkphp框架验证码扩展composerrequiretopthink/think-captcha时报错curlerror60whiledownloading https://xxx.com SSLcertificateproblem:certificatehasexpired,这个问题说的是CA证书过期了curlerror60whiledownloadinghttps://packagist.phpcomposer......
  • Java项目配置Maven依赖时不知需要的最低jdk版本?(报错java: 错误: 无效的目标发行版:17)
    1.问题在配置SpringBoot项目依赖时,使用了最新的spring-boot-starter-parent3.1.5,但是出现了java:错误:无效的目标发行版:17的报错2.解决经过查阅资料后得知是jdk版本不匹配导致的错误,那我们如何得知相应依赖需要的最低版本需求,并进行配置呢?Maven依赖仓库1.登陆进这个网站后......
  • nginx启动报错权限不够
    -bash:/u01/nginx/sbin/nginx:权限不够解决方案:这个错误提示表明你尝试执行/u01/nginx/sbin/nginx时没有足够的权限来执行该命令。这通常是因为当前用户对该文件没有执行权限。要解决这个问题,你可以使用sudo命令以超级用户的身份来执行该命令。比如:bashCopyCodesud......
  • 【手工注入篇】updatexml报错注入
    一、描述updatexml(xml_target,xpath_expr,new_val)xml_target:要进行修改的XML类型的字段,或者是XML文档字符串。xpath_expr:XPath表达式,用于定位要更新的节点。new_val:新的值,用于替换被定位到的节点的内容。格式简化 updatexml(xx,concat(xx),xx)concat函数用来拼......
  • cc1: all warnings being treated as errors报错处理
    cmake时一切正常,make时产生了报错,并且解释为`cc1:allwarningsbeingtreatedaserrors`一些网上的方法是在Makefile文件里删除`-Werror`,但我的Makefile文件不存在这个选项。我的解决方法:在CMakeLists里寻找配置'-Werror'的语句,将这些涉及的语句删除。并且删除之前cmake......
  • 解决vue-element-admin安装报错npm ERR! code 128
    在安装vue-element-admin的npminstall的时候报错npmERR!code128npmERR!AnunknowngiterroroccurrednpmERR!commandgit--no-replace-objectsls-remotessh://[email protected]/nhn/[email protected]:Permissiondenied(publickey).npmERR!fatal:......
  • 虚拟机下载redis时使用make命令报错
    问题描述使用make命令编译redis时,发现这里一直报错~~问题解决先下载c++编译器:yum-yinstallgcc-c++我是又重新解压了文件,再次使用make命令,就ok啦~......