Skip to content

Validating Apps

After you have created or edited your Mobile Development Kit app, you can validate the app metadata by using the validation command.

Prerequisites

If you have multiple app references within the same workspace, you must ensure that the cross application reference paths are not displayed as errors by ignoring the ApplicationNotFound errors. To do this, perform the following steps:

  1. Locate the error in the editor workspace, and place your cursor on it. A light bulb icon appears in the left margin.
  2. When you click the bulb icon, the action message MDK: Ignore the application reference is displayed.
  3. When you click the action, the following message is displayed: Do you want to ignore checking the referenced application Component?. Choose Yes to confirm that you want to ignore checking the application that cannot be found.

The ApplicationNotFound errors disappear; and on triggering the app validation process, all such errors are ignored.

Context

View the validation issues with your app easily by following one of the methods below.

Procedure

  1. In the Visual Studio Code editor, click the TERMINAL menu and then click the Run Task menu item.
  2. From the drop-down list, choose MDK: validate -Default (default.definitions). If there is only one Mobile Development Kit project, the process of validation begins at once. If there are many Mobile Development Kit projects, all the projects are listed for you to select from. This enables the validation of the Mobile Development Kit app. If there are errors during the validation, you can see them in the TERMINAL view. After the validation process is completed, you can see the results displayed in the PROBLEMS view.

Method 2: Validating the Application.app File

  1. In the application folder within the Visual Studio Code editor workspace, right-click the Application.app file to open the menu options.
  2. Click MDK: Validate Application. This triggers the validation of the Mobile Development Kit app. If there are errors during the validation, you can see them in the TERMINAL view. After the validation process is completed, you can see the results displayed in the PROBLEMS view.

Results

Your Mobile Development Kit app is now ready for bundling.


Last update: August 12, 2020