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. 重新打包,执行成功。
相关推荐
我不是8神2 小时前
gin与gorm框架知识点总结
ios·iphone·gin
修己xj4 小时前
解决Github QQ邮箱注册难题:绕过“Unable to verify your captcha response”错误
github
奋斗的小青年!!5 小时前
Flutter浮动按钮在OpenHarmony平台的实践经验
flutter·harmonyos·鸿蒙
AI首席情报员_阿布7 小时前
2026 GitHub 最火的 10 个 AI Agent 框架:普通开发者的选型指南
github
程序员老刘9 小时前
一杯奶茶钱,PicGo + 阿里云 OSS 搭建永久稳定的个人图床
flutter·markdown
皇上o_O10 小时前
深入理解 Swift Concurrency:从 async/await 到隔离域
ios
CocoaKier12 小时前
1月12日最新用户隐私保护政策出炉,政策解读
ios
阿里嘎多学长12 小时前
2026-01-11 GitHub 热点项目精选
开发语言·程序员·github·代码托管
奋斗的小青年!!12 小时前
OpenHarmony Flutter 拖拽排序组件性能优化与跨平台适配指南
flutter·harmonyos·鸿蒙
三两肉12 小时前
HTTPS ECDHE 握手全解析
网络协议·https·github·rsa·echde