一、進入網站進行Flutter 的下載,壓縮包解放存放當一個目錄ios
二、進行將Flutter添加到路徑,git
vim ~/.bash_profile
點擊i進行編輯,添加flutter存放的路徑github
export PATH=/完整的路徑/flutter/bin:$PATH
點擊esc-輸入:wq 結束編輯macos
進行保存vim
source ~/.bash_profile
三、嘗試調出Flutter help命令 查看是否成功bash
flutter -h
四、查看flutter 運行狀態,ide
flutter doctor
感嘆號、叉號都是不可運行的網站
五、iOS修復spa
5.1查看iOS的問題命令行
iOS toolchain - develop for iOS devices (Xcode 10.1) ✗ libimobiledevice and ideviceinstaller are not installed. To install with Brew, run: brew update brew install --HEAD usbmuxd brew link usbmuxd brew install --HEAD libimobiledevice brew install ideviceinstaller ✗ ios-deploy not installed. To install: brew install ios-deploy
5.2 能夠直接在終端運行,執行完下邊代碼執行flutter doctor,查看iOS狀態並執行iOS中的提示執行的命令行
brew update brew install --HEAD usbmuxd brew link usbmuxd brew install --HEAD libimobiledevice brew install ideviceinstaller
5.3若是不能正常運行,須要運行下面命令行
git clone https://github.com/libimobiledevice/ideviceinstaller.git cd ideviceinstaller ./autogen.sh make sudo make install
5.4以上執行完畢,再次
flutter doctor
查看iOS的狀態,回到5.2進行操做