Testing the app locally
You may want to test the app locally before deploying it to an official app store. This section explains how. The same prerequisites apply as for the publication.
Android
Nevis provides your application as APK and App Bundle files. Before you can install the APK files on a device, they must be signed. You will need the Android SDK build tools to complete the signing process.
APK
- Open a command line terminal
- Align the unsigned APK using
zipalign(replace the name of the apk with yours):
zipalign -p -v 4 nevis-access-app-android-production-unsigned.apk nevis-access-app-android-production-unsigned-aligned.apk
- Sign your APK with your private key using
apksigner(replace<KEYSTORE_PATH>with your specific keystore containing the signing key).
apksigner sign --ks <KEYSTORE_PATH> --in nevis-access-app-android-production-unsigned-aligned.apk --out nevis-access-app-android-production-signed.apk
- You can now install the app on an attached device:
adb install nevis-access-app-android-production-signed.apk
iOS
To test the iOS app locally, you need a signed .ipa file, a registered test device, and Xcode installed on your Mac.
- Open Xcode and sign in with the Apple Developer account that is allowed to install the app on your test device.
- Connect your iPhone to your Mac and make sure the device is trusted.
- In Xcode, open Window > Devices and Simulators.
- Select your device in the left sidebar.
- Drag and drop the signed
.ipafile into the Installed Apps section to install it. - After the installation completes, launch the app on the device.
If iOS blocks the app from starting, verify that the device is registered for your provisioning profile and trust the corresponding developer profile on the device if required.