flutter windows搭建ios开发环境

时间:2024-04-11 17:31:37

flutter windows搭建ios开发环境

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

效果

flutter windows搭建ios开发环境

流程

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