Install xcode
Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install node and npm
brew install node
Install Ionic CLI
npm i -g @ionic/cli
Install Cordova (if using, Capacitor probably needs installing too but I’m not using it yet)
npm i -g cordova
Fix error ionic cordova build tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
using:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Install Android Studio 2
Install Java JDK 1.8 and then add paths and fix DX error.
Should now be able to use Ionic and build for iOS and Android.
Leave a Reply