You absolutely can avoid this issue if you manage the device with MDM or have access to Apple Configurator.
The solution is to push either the Developer or iOS Distribution certificate to the device via MDM or Apple Configurator. Once you do that, any application signed by that cert will be trusted.
When you click on "Do you trust this developer", you're essentially adding that certificate manually on a per-app basis.