When configuring the Licenses tab of the Build Application dialog in 4D make sure to include a license for a development product. For example, if you are using 4th Dimension Developer Edition, you must include this license in the Licenses tab. This is in addition to any deployment licenses you need to add. Here is an example:
Also notice the Development product is listed first.
This also applies to building applications with a custom project file and the BUILD APPLICATION command.