Skip to content

Instantly share code, notes, and snippets.

@eladcandroid
Created June 30, 2019 12:33
Show Gist options
  • Save eladcandroid/e6ba711ef2dff4595d9b6528ce4b0cfe to your computer and use it in GitHub Desktop.
Save eladcandroid/e6ba711ef2dff4595d9b6528ce4b0cfe to your computer and use it in GitHub Desktop.
Ionic Capacitor Instructions

Build For Android Instructions

During development

After git pull:

npm install
npx cap sync
ionic capacitor run android -l

On Android Studio:

Build -> Clean Project
Run -> Run 'app'

For production (APK)

ATTENTION: REMOVE SERVER PROPERTY FROM capacitor.config.json

git clone https://github.com/{USERNAME}/{REPONAME}.git
npm install
npm install -g [email protected]
ionic build --prod
npx cap sync
npx cap open android

On Android Studio:

Build -> Build Bundle(s) / APK(s)

Build For IOS Instructions

During development

After git pull:

npm install
npx cap sync
cd ./ios/App && pod update
cd ../.. && ionic capacitor run ios -l

On Xcode:

Product -> Clean Build Folder
Product -> Run

For production (Archive)

ATTENTION: REMOVE SERVER PROPERTY FROM capacitor.config.json

git clone https://github.com/{USERNAME}/{REPONAME}.git
npm install
npm install -g [email protected]
ionic build --prod
npx cap sync
cd ./ios/App && pod update 
(For ensuring using the right POD versions)
npx cap open ios

On Xcode:

Change to generic IOS device,
Product -> Archive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment