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