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. 重新打包,执行成功。
相关推荐
粥里有勺糖9 小时前
视野修炼-技术周刊第139期 | AI 不会让时间变多
前端·github·ai编程
CocoaKier9 小时前
神技分享:App加锁,App隐藏?苹果官方自带,只需要一个长按
ios·apple
一点一木10 小时前
🚀 2026 年 11 月 GitHub 十大热门项目排行榜 🔥
人工智能·github
Nerd(BUG版)11 小时前
Flutter学习day19--MethodChannel打通Dart与原生
学习·flutter
OpenTiny社区12 小时前
当 AI 开始写 UI,我们缺的不是模型,是"设计词汇"
前端·github·ai编程
逛逛GitHub12 小时前
Codex 自带的远程功能用着不爽,直接换成这个远程控制神器了。
github
CoderJia程序员甲12 小时前
GitHub 热榜项目 - 周榜(2026-11-28)
github
LiuPig刘皮哥13 小时前
github桌宠desktop-pet star前22在干嘛?
github·桌宠·xiaokeai
七牛云行业应用13 小时前
Antigravity 迁移清单:Claude Code、Codex、Cursor 哪些能带过来
人工智能·ai·github
欧雷殿14 小时前
没有数据勿谈智能:揭秘我的数据底座
数据挖掘·github·ai编程