capacitor_build_sync
Description:
This step involves the build process and synchronization of the Android/Ios app from the existing Angular web application. Afterwards, the app can be executed.
Steps:
- Compile the Angular project into static assets using the Angular CLI's build command: Run
ng build
. - Copy the built assets to all platforms:
npx cap sync
Run the App:
-
npx cap open android/ios
to open the project in Android Studio or xCode -
npx cap run android/ios
to run directly in simulator
Prerequisites Android:
- Android Studio required
- set Path for Platform-Tools
C:\Users\USERNAME\AppData\Local\Android\sdk\platform-tools
Prerequisites IOS:
- xCode required
- execute command in terminal
sudo xcode-select -s /WORKDIR/Xcode.app/Contents/Developer
Edited by Tobias Walter