Flutter打包iOS过程中pod访问github失败

问题描述

执行Flutter打包iOS命令出现如下错误:

bash 复制代码
# flutter build ios
...
 Error output from CocoaPods:
↳
         Cloning into '/var/folders/q8/sd0qtp6d69b30yt6gsh1jrg40000gq/T/d20231116-58127-8g2zje'...
         fatal: unable to access 'https://github.com/ccgus/fmdb.git/': Failure when receiving data from the peer

    [!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a
    platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Error running pod install

问题分析

安装失败的原因是网络问题。

解决方案

  1. 开启代理

  2. 配置代理

bash 复制代码
% export https_proxy=http://127.0.0.1:7890 
  1. 重新打包,执行成功。
相关推荐
砖厂小工2 小时前
用 GLM + OpenClaw 打造你的 AI PR Review Agent — 让龙虾帮你审代码
android·github
恋猫de小郭3 小时前
Apple 的 ANE 被挖掘,AI 硬件公开,宣传的 38 TOPS 居然是"数字游戏"?
前端·人工智能·ios
程序员鱼皮3 小时前
又一个新项目完结,我要出海了!
ai·github·开源项目
徐小夕3 小时前
pxcharts-vue:一款专为 Vue3 打造的开源多维表格解决方案
前端·vue.js·github
Moment4 小时前
想要长期陪伴你的助理?先从部署一个 OpenClaw 开始 😍😍😍
前端·后端·github
我叫黑大帅4 小时前
前端如何利用 GitHub Actions 自动构建并发布到 GitHub Pages?
前端·面试·github
shankss4 小时前
Flutter 下拉刷新库 pull_to_refresh_plus 设计与实现分析
flutter
HelloGitHub6 小时前
这个年轻的开源项目,想让每个人都能拥有自己的专业级 AI 智能体
开源·github·agent
刘发财12 小时前
弃用html2pdf.js,这个html转pdf方案能力是它的几十倍
前端·javascript·github