Skip to content

Instantly share code, notes, and snippets.

@backviet
Last active February 16, 2019 15:35
Show Gist options
  • Select an option

  • Save backviet/6414433605b3e26810feb8f7c481cb14 to your computer and use it in GitHub Desktop.

Select an option

Save backviet/6414433605b3e26810feb8f7c481cb14 to your computer and use it in GitHub Desktop.

Revisions

  1. backviet revised this gist Feb 16, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion flutter_setup.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,8 @@

    # Save this file in the samle parent forder of flutter sdk
    # run commandline:
    # $ sh flutter_setup.sh
    # $cd /path/to/parent/of/flutter
    # $sh flutter_setup.sh

    BASE_DIR=$(pwd)
    echo "BASE_DIR: $BASE_DIR"
  2. backviet created this gist Feb 16, 2019.
    26 changes: 26 additions & 0 deletions flutter_setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    #!/usr/bin/env bash

    # Save this file in the samle parent forder of flutter sdk
    # run commandline:
    # $ sh flutter_setup.sh

    BASE_DIR=$(pwd)
    echo "BASE_DIR: $BASE_DIR"


    echo "export PATH=\$PATH:$BASE_DIR/flutter/bin" >> ~/.bash_profile
    source ~/.bash_profile
    echo $PATH


    sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
    sudo xcodebuild -license

    brew update
    brew install --HEAD usbmuxd
    brew link usbmuxd
    brew install --HEAD libimobiledevice
    brew install ideviceinstaller ios-deploy cocoapods
    pod setup

    flutter doctor