iosvisual-studioxamarinxamarin.ios

Xamarin: Could not install the application AMDeviceSecureInstallApplicationBundle returned: 0xe8008015


I am trying to deploy my app on the device to test.

In Debug mode I can deploy it successfully and it is working perfectly.

But when I am trying to deploy in Release mode it is giving me this error.

error MT1006: Could not install the application
'/Users/development/Library/Caches/Xamarin/mtbs/builds/AppName.iOS/longstring/bin/iPhone/Release/AppName.iOS.app'
on the device 'My iPhone': AMDeviceSecureInstallApplicationBundle returned: 0xe8008015.

Have anyone faced this issue? how I can deploy the App on my testing device in release mode?

I have already tried recreating the certificate and provisioning profile.

I am using visual studio 2019.


Solution

  • I thought I should post the answer to this question.

    I found the mistake I was doing with Signing Identity and Provisioning Profile. I was using a Distribution Certificate to deploy in release mode but should be using Ad-Hoc.