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. 重新打包,执行成功。
相关推荐
键盘敲没电7 小时前
【IOS】GCD学习
学习·ios·objective-c·xcode
SY.ZHOU7 小时前
Significant Location Change
macos·ios·cocoa
qianmoQ9 小时前
GitHub 趋势日报 (2025年05月31日)
github
油泼辣子多加9 小时前
2025年06月06日Github流行趋势
github
粥里有勺糖10 小时前
视野修炼-技术周刊第122期 | 发光图片制作
前端·javascript·github
qianmoQ10 小时前
GitHub 趋势日报 (2025年06月05日)
github
小馒头君君10 小时前
3 个优质的终端 GitHub 开源工具
github
阅文作家助手开发团队_山神11 小时前
第四章(下) Delta 到 HTML 转换:块级与行内样式渲染深度解析
flutter
MaoJiu11 小时前
Flutter造轮子系列:flutter_permission_kit
flutter·swiftui
MarkHD14 小时前
AI编程助手入门指南:GitHub Copilot、Cursor与Claude的安装与基础使用
github·copilot·ai编程