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:
- Locate the error in the editor workspace, and place your cursor on it. A light bulb icon appears in the left margin.
- When you click the bulb icon, the action message
MDK: Ignore the application reference
is displayed. - 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
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¶
- In the Visual Studio Code editor, click
View
menu and then chooseCommand palette
option. - 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 theTERMINAL
view. After the validation process is completed, you can see the results displayed in thePROBLEMS
view.
Method 2: From Application.app¶
- In the application folder within the Visual Studio Code editor workspace, right-click the
Application.app
file to open the menu options. - 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 theTERMINAL
view. After the validation process is completed, you can see the results displayed in thePROBLEMS
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