Best way to test a .ipa file that is ready for distribution

Hi - I am trying to run my Appium tests on .ipa file that is signed for App Store distribution. I see this error:
ios-deploy[49944:29426658] [ !! ] Error 0xe8008016: The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
This is the error that comes back with ios-deploy that Appium uses for uploading the binary onto the device.

My question is : how do you run Appium automated tests on a prod App on a device that is ready for distribution?
I can run tests on the app that is signed by development profile.
I saw some discussion on creating a Ad Hoc provisioning profile. Could someone detail the steps please?
Is there any other way other than creating a Ad Hoc provisioning?


let me know if you find something missing, will update info