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.
  4. The ApplicationNotFound error disappears. 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.

Method 1: From Command Palette

  1. In the Visual Studio Code editor, click View menu and then choose Command palette option.
  2. From the drop-down list, choose MDK: Validate Application. 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: From Application.app

  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

If an error occurs, review and validate it to see if they are accurate, and adjust your metadata accordingly. Typically, validation errors won’t prevent your metadata from being bundled, but may cause problems in your application while running it in the Mobile Development Kit client.


Last update: November 2, 2022