flutter windows搭建ios开发环境

flutter windows搭建ios开发环境

具体流程太长了,这里记录下思路过程以及坑点。
原文连接:http://www.noobyard.com/article/p-rchyvjzh-ng.htmlhtml

效果

在这里插入图片描述

流程

1 VM虚拟机搭建黑苹果

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

2配置黑苹果flutter环境

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

坑点

1mac虚拟机无网络链接

参考:http://www.noobyard.com/article/p-wkfpubuh-be.htmlgithub

2mac虚拟机分辨率过低

安装VMware Tools加强工具
在菜单栏中选择虚拟机->安装VMware Tools
若是显示驱动被占用,就添加一个驱动。
安装过程当中会有权限确认,赞成便可web

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

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

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

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

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 updatesvg

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工具