You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/refguide/mobile/distributing-mobile-apps/building-native-apps/how-to-devapps.md
+23-88Lines changed: 23 additions & 88 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,111 +18,46 @@ A custom developer app helps you by serving as a replacement for the Make It Nat
18
18
* Complete [Get Started with Native Mobile](/refguide/mobile/getting-started-with-mobile/)
19
19
* Complete the Mendix Native Mobile Builder wizard as found in [Build a Mendix Native App Locally](/refguide/mobile/distributing-mobile-apps/building-native-apps/native-build-locally-manually/)
20
20
21
-
## Building Your Developer App {#build-your-developer-app}
21
+
{{% alert color="info" %}}
22
+
Even custom developer apps on iOS must be provisioned and signed. However, we do not recommended you use the same provisioning method as your release build.
22
23
23
-
1. Run Mendix Native Mobile Builder from your app:
24
+
Instead, use an ad-hoc provisioning profile, which allows you to register your testers' devices with Apple and distribute the app outside the App Store. For more information on ad-hoc provisioning, see [Apple's documentation](https://developer.apple.com/help/account/provisioning-profiles/create-an-ad-hoc-provisioning-profile/).
1. When Mendix Native Mobile launches you are greeted with the home screen:
28
+
## Building Your Developer App with Bitrise {#build-your-developer-app}
28
29
29
-
{{< figure src="/attachments/howto/mobile/native-mobile/distribution/build-native-apps/deploying-native-app/home-screen.png" alt="Mendix Natve Mobile Builder Home Screen" width="350" class="no-border" >}}
30
-
31
-
1. Choose *Build app for local development*
32
-
33
-
1. Given you already went through the initial wizard at least once, you should be greeted with the configuration screen for *Building an app for local development*:
34
-
35
-
{{< figure src="/attachments/howto/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/build-custom-dev-app.png" alt="Mendix Natve Mobile Builder Home Screen" width="350" class="no-border" >}}
36
-
37
-
1. Click the *Build developer app* button
38
-
39
-
1. The tool will set up your GitHub repository commit your changes, one for iOS and one for Android and continue with building the apps.
1. When the build completes, you can scan the QR code provided to install the app to your device. Currently the QR code service is only supported for Android devices.
When using Bitrise to build your native mobile app in the cloud, you can configure the settings below to generate a custom developer app instead of a release app. Once configured, the app can be built and installed similarly to a release version.
49
31
50
32
### Android
51
33
52
-
For Android the output of the build is an *APK* file. *APK* files can be directly installed on devices or emulators.
53
-
54
-
#### Installing on an Emulator
55
-
56
-
With your emulator running, install your app in your emulator by doing the following:
57
-
58
-
1. Drag the *APK* onto the emulator's window.
59
-
2. Wait for the installation to be done.
60
-
3. Open the app from the launcher.
61
-
62
-
#### Installing on a Device
34
+
1. Open the **Android Build** workflow step.
35
+
1. Set the **Variant** to `devDebug`:
63
36
64
-
There are various ways install an app on a device. Installing using a USB is detailed below, but you can use a different method if it suits you. Do the following to install your *APK* onto a device:
65
-
66
-
1. Connect your device to your machine via USB.
67
-
2. Enable file transfer on your device (differs per device).
68
-
3. Open **This PC** in File Explorer; your device should be listed as an external device.
69
-
4. Drag your *APK* onto your device.
70
-
5. Wait for it to finish transferring.
71
-
6. Open your device's file manager.
72
-
7. Navigate to the root of the file system.
73
-
8. Tap the *APK* to install.
74
-
9. Go through the installation steps.
75
-
10. Open the app from the launcher.
37
+
{{< figure src="/attachments/howto/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/custom-developer-app-bitrise-android.png" alt="Screenshot of the Bitrise dialog to enable a custom developer app">}}
76
38
77
39
### iOS
78
40
79
-
By default your custom developer app will be unsigned. To get a signed *IPA*, follow the steps in [Distributing Native Apps](/refguide/mobile/distributing-mobile-apps/distributing-native-apps/). Your custom developer app branch is named **developer**.
80
-
81
-
The unsigned output of an iOS build is an *XCArchive* file. *XCArchive* files require manual signing before they are ready to be installed on a device.
82
-
83
-
The signed output of iOS build is an *IPA* file. If correctly signed, *IPA* files can be installed on physical devices.
84
-
85
-
#### Installing on an Emulator
86
-
87
-
Before installing, make sure you have completed the following prerequisites:
88
-
89
-
* Have a Mac OSX machine
90
-
* Install LTS builds of Node.js and NPM (download [here](https://nodejs.org/en/))
1. Open the **Xcode Archive & Export for iOS** workflow step.
42
+
1. Set the **Scheme** to `Dev`:
93
43
94
-
Builds with the Mendix Native Mobile Builder are stripped of simulator artifacts. Therefore, to run on Xcode's Simulator you will have to build the developer branch locally from source by completing these steps:
44
+
{{< figure src="/attachments/howto/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/custom-developer-app-bitrise-xcode.png" alt="Screenshot of the Bitrise dialog to enable a custom developer app">}}
95
45
96
-
1. Navigate to your GitHub repo.
97
-
2. Switch to your **developer** branch:
46
+
## Building Your Developer App Locally
98
47
99
-
{{< figure src="/attachments/howto/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/github-branch-switching.png" alt="Switch branch on GitHub" width="350" class="no-border" >}}
100
-
101
-
3. Click **Clone or Download** and then click **Download ZIP**:
48
+
If you are building your release app locally using Android Studio or Xcode, you can adjust the configuration settings below to generate a custom developer build instead of a release build. Once configured, the app can be built and installed similarly to a release version, including on the Android Emulator and iOS Simulator.
1. Open the Android project within your native template in **Android Studio**.
53
+
1. Open the **Build Variants** (**View** > **Tool Windows** > **Build Variants**).
54
+
1. Set the **Active Build Variant** of the Module **:app** to `devDebug`:
121
55
122
-
9. Click **Play**.
56
+
{{< figure src="/attachments/howto/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/custom-developer-app-android.png" alt="Screenshot of the Bitrise dialog to enable a custom developer app">}}
123
57
124
-
#### Distributing the Custom Developer App to the Apple App Store
58
+
##iOS
125
59
126
-
To run your custom developer app on a device which is not registered as a test device on the Apple Mendix Portal, you will have to sign the developer app with your certificates manually and distribute it via TestFlight.
60
+
1. Open the iOS project within your native template in **XCode**.
61
+
1. Set the Target to `Dev`:
127
62
128
-
Read more on TestFlight in the [official documentation](https://testflight.apple.com/).
63
+
{{< figure src="/attachments/howto/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/custom-developer-app-xcode.png" alt="Screenshot of the Bitrise dialog to enable a custom developer app">}}
Copy file name to clipboardExpand all lines: content/en/docs/refguide10/mobile/distributing-mobile-apps/building-native-apps/how-to-devapps.md
+23-89Lines changed: 23 additions & 89 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,111 +18,45 @@ A custom developer app helps you by serving as a replacement for the Make It Nat
18
18
* Complete [Get Started with Native Mobile](/refguide10/mobile/getting-started-with-mobile/)
19
19
* Complete the Mendix Native Mobile Builder wizard as found in [Build a Mendix Native App Locally](/refguide10/mobile/distributing-mobile-apps/building-native-apps/native-build-locally-manually/)
20
20
21
-
## Building Your Developer App {#build-your-developer-app}
21
+
{{% alert color="info" %}}
22
+
Even custom developer apps on iOS must be provisioned and signed. However, we do not recommended you use the same provisioning method as your release build.
22
23
23
-
1. Run Mendix Native Mobile Builder from your app:
24
+
Instead, use an ad-hoc provisioning profile, which allows you to register your testers' devices with Apple and distribute the app outside the App Store. For more information on ad-hoc provisioning, see [Apple's documentation](https://developer.apple.com/help/account/provisioning-profiles/create-an-ad-hoc-provisioning-profile/).
## Building Your Developer App with Bitrise {#build-your-developer-app}
26
28
27
-
1. When Mendix Native Mobile launches you are greeted with the home screen:
28
-
29
-
{{< figure src="/attachments/howto10/mobile/native-mobile/distribution/build-native-apps/deploying-native-app/home-screen.png" alt="Mendix Natve Mobile Builder Home Screen" width="350" class="no-border" >}}
30
-
31
-
1. Choose *Build app for local development*
32
-
33
-
1. Given you already went through the initial wizard at least once, you should be greeted with the configuration screen for *Building an app for local development*:
34
-
35
-
{{< figure src="/attachments/howto10/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/build-custom-dev-app.png" alt="Mendix Natve Mobile Builder Home Screen" width="350" class="no-border" >}}
36
-
37
-
1. Click the *Build developer app* button
38
-
39
-
1. The tool will set up your GitHub repository, commit your changes, and continue with building the apps:
1. When the build completes, you can scan the QR code provided to install the app to your device. Currently the QR code service is only supported for Android devices.
When using Bitrise to build your native mobile app in the cloud, you can configure the settings below to generate a custom developer app instead of a release app. Once configured, the app can be built and installed similarly to a release version.
49
30
50
31
### Android
51
32
52
-
For Android the output of the build is an *APK* file. *APK* files can be directly installed on devices or emulators.
53
-
54
-
#### Installing on an Emulator
55
-
56
-
With your emulator running, install your app in your emulator by doing the following:
57
-
58
-
1. Drag the *APK* onto the emulator's window.
59
-
2. Wait for the installation to be done.
60
-
3. Open the app from the launcher.
33
+
1. Open the **Android Build** workflow step.
34
+
1. Set the **Variant** to `devDebug`:
61
35
62
-
#### Installing on a Device
63
-
64
-
There are various ways install an app on a device. Installing using a USB is detailed below, but you can use a different method if it suits you. Do the following to install your *APK* onto a device:
65
-
66
-
1. Connect your device to your machine via USB.
67
-
2. Enable file transfer on your device (differs per device).
68
-
3. Open **This PC** in File Explorer; your device should be listed as an external device.
69
-
4. Drag your *APK* onto your device.
70
-
5. Wait for it to finish transferring.
71
-
6. Open your device's file manager.
72
-
7. Navigate to the root of the file system.
73
-
8. Tap the *APK* to install.
74
-
9. Go through the installation steps.
75
-
10. Open the app from the launcher.
36
+
{{< figure src="/attachments/howto/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/custom-developer-app-bitrise-android.png" alt="Screenshot of the Bitrise dialog to enable a custom developer app">}}
76
37
77
38
### iOS
78
39
79
-
By default your custom developer app will be unsigned. To get a signed *IPA*, follow the steps in [Distributing Native Apps](/refguide10/mobile/distributing-mobile-apps/distributing-native-apps/). Your custom developer app branch is named **developer**.
80
-
81
-
The unsigned output of an iOS build is an *XCArchive* file. *XCArchive* files require manual signing before they are ready to be installed on a device.
82
-
83
-
The signed output of iOS build is an *IPA* file. If correctly signed, *IPA* files can be installed on physical devices.
84
-
85
-
#### Installing on an Emulator
86
-
87
-
Before installing, make sure you have completed the following prerequisites:
88
-
89
-
* Have a Mac OSX machine
90
-
* Install LTS builds of Node.js and NPM (download [here](https://nodejs.org/en/))
1. Open the **Xcode Archive & Export for iOS** workflow step.
41
+
1. Set the **Scheme** to `Dev`:
93
42
94
-
Builds with the Mendix Native Mobile Builder are stripped of simulator artifacts. Therefore, to run on Xcode's Simulator you will have to build the developer branch locally from source by completing these steps:
43
+
{{< figure src="/attachments/howto/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/custom-developer-app-bitrise-xcode.png" alt="Screenshot of the Bitrise dialog to enable a custom developer app">}}
95
44
96
-
1. Navigate to your GitHub repo.
97
-
2. Switch to your **developer** branch:
45
+
## Building Your Developer App Locally
98
46
99
-
{{< figure src="/attachments/howto10/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/github-branch-switching.png" alt="Switch branch on GitHub" width="350" class="no-border" >}}
100
-
101
-
3. Click **Clone or Download** and then click **Download ZIP**:
47
+
If you are building your release app locally using Android Studio or Xcode, you can adjust the configuration settings below to generate a custom developer build instead of a release build. Once configured, the app can be built and installed similarly to a release version, including on the Android Emulator and iOS Simulator.
1. Open the Android project within your native template in **Android Studio**.
52
+
1. Open the **Build Variants** (**View** > **Tool Windows** > **Build Variants**).
53
+
1. Set the **Active Build Variant** of the Module **:app** to `devDebug`:
121
54
122
-
9. Click **Play**.
55
+
{{< figure src="/attachments/howto/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/custom-developer-app-android.png" alt="Screenshot of the Bitrise dialog to enable a custom developer app">}}
123
56
124
-
#### Distributing the Custom Developer App to the Apple App Store
57
+
##iOS
125
58
126
-
To run your custom developer app on a device which is not registered as a test device on the Apple Mendix Portal, you will have to sign the developer app with your certificates manually and distribute it via TestFlight.
59
+
1. Open the iOS project within your native template in **XCode**.
60
+
1. Set the Target to `Dev`:
127
61
128
-
Read more on TestFlight in the [official documentation](https://testflight.apple.com/).
62
+
{{< figure src="/attachments/howto/mobile/native-mobile/distribution/build-native-apps/how-to-devapps/custom-developer-app-xcode.png" alt="Screenshot of the Bitrise dialog to enable a custom developer app">}}
0 commit comments