flutter windows搭建ios开发环境

flutter windows搭建ios开发环境

具体流程太长了,这里记录下思路过程以及坑点。
原文链接:https://blog.csdn.net/weixin_44259356/article/details/106075878

效果

在这里插入图片描述

流程

1 VM虚拟机搭建黑苹果

参考:https://jingyan.baidu.com/article/597a06438b1e5e702b5243c6.html
记得设置大一些的存储空间,推荐80g以上

2配置黑苹果flutter环境

参考:https://flutterchina.club/setup-macos/

坑点

1mac虚拟机无网络连接

参考:https://blog.csdn.net/shileimohan/article/details/87874674

2mac虚拟机分辨率太低

安装VMware Tools增强工具
在菜单栏中选择虚拟机->安装VMware Tools
如果显示驱动被占用,就添加一个驱动。
安装过程中会有权限确认,同意即可

3报错Warning! This package referenced a Flutter repository via the .packages file that is no longer avail

进入flutter项目根目录删除.gitignore文件,这个问题是打开之前创立好的flutter项目配置不正确引起的

4报错Automatically assigning platform ios with version 10.0 on target CloudLive because no pl

进入flutter项目ios文件夹下Podfile文件下,去掉
**platform :ios, ‘9.0’**的#号注释,原因同上。

5报错CDN: trunk URL couldn’t be downloaded

打开你flutter工程下ios文件夹下的podfile文件,添加
source ‘https://github.com/CocoaPods/Specs.git’

6报错Error: CocoaPods’s specs repository is too out-of-date to satisfy dependencies.

终端执行:
pod repo update

7报错 [!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down

参考:https://www.jianshu.com/p/a502eb72b689

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值