An Internet connection is required on the device when establishing trust for the app developer.

More info from Apple: https://support.apple.com/en-us/HT204460