Appium provides Over-the-Air Profile Delivery and Configuration feature to configure devices via configuration profile.
Appium already provides to set it as a mobile command. It helps configure your test device with the profile without your hand work.
- http://appium.io/docs/en/commands/mobile-command/
- http://appium.io/docs/en/writing-running-appium/ios/ios-xctest-install-certificate/index.html
Recent documentation about it is: https://developer.apple.com/documentation/devicemanagement/using_configuration_profiles