Last active
November 24, 2019 02:16
-
-
Save RickJP/b3491b5e84126684521d1631c6816802 to your computer and use it in GitHub Desktop.
CORE -> FLUTTER - SETUP ON MAC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FLUTTER | |
MacOS install | |
Download SDK | |
cd ~/development | |
$ unzip ~/Downloads/flutter_macos_v1.7.8+hotfix.3-stable.zip | |
export PATH="$PATH:`pwd`/flutter/bin" | |
sudo nano $HOME/.bash_profile | |
export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin" | |
source $HOME/.bash_profile | |
echo $PATH | |
flutter doctor | |
Install Xcode | |
brew update | |
brew install --HEAD usbmuxd | |
brew link usbmuxd | |
brew install --HEAD libimobiledevice | |
brew install ideviceinstaller ios-deploy cocoapods | |
pod setup | |
Install VS Code | |
Install the Flutter and Dart plugins | |
OPEN IOS EMULATOR | |
open -a Simulator.app | |
[✗] Android toolchain - develop for Android devices | |
✗ Unable to locate Android SDK. | |
Install Android Studio from: https://developer.android.com/studio/index.html | |
On first launch it will assist you in installing the Android SDK components. | |
(or visit https://flutter.dev/setup/#android-setup for detailed instructions). | |
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location. | |
You may also want to add it to your PATH environment variable. | |
[✗] Xcode - develop for iOS and macOS | |
✗ Xcode installation is incomplete; a full installation is necessary for iOS development. | |
Download at: https://developer.apple.com/xcode/download/ | |
Or install Xcode via the App Store. | |
Once installed, run: | |
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer | |
✗ CocoaPods not installed. | |
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to | |
your plugin usage on the Dart side. | |
Without CocoaPods, plugins will not work on iOS or macOS. | |
For more info, see https://flutter.dev/platform-plugins | |
To install: | |
brew install cocoapods | |
pod setup | |
[✗] iOS tools - develop for iOS devices | |
✗ 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 | |
Create and run a simple Flutter app | |
flutter create my_app | |
cd my_app | |
flutter run | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment