App distribution problem on iPhone

Giacomo Ferrera 21 Reputation points
2021-08-24T15:21:01.56+00:00

Greetings,

I am trying to deploy my App on an iPhone X with iOS 14.6 for a physical test.

I have a MacBook with:

  • MacOS Big Sur 14.5, Visual Studio for Mac 8.10.7;
  • Xamarin.iOS 14.20.0.24 (Visual Studio Community);

I performed the entire procedure described in the guide proposed at the Web address:

https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/app-distribution/ad-hoc-distribution?tabs=macos

The compilation is successful, while during installation on the device the procedure stops giving me this error:

ApplicationVerificationFailed: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.VfsuC9/extracted/ECornerApp.iOS.app: 0xe8008016 (The executable was signed with invalid entitlements.)
error MT1006: Could not install the application '/Users/marcobartalucci/Desktop/Xamarin_ECornerAPP_SW/ECornerApp.iOS/bin/iPhone/Debug/device-builds/iphone10.6-14.6/ECornerApp.iOS.app' on the device 'iPhone di Marco ': Your code signing / provisioning profiles are not correctly configured. Probably you have an entitlement not supported by your current provisioning profile, or your device is not part of the current provisioning profile. Please check the iOS Device Log for details (error: 0xe8008016).

Anyone have a solution to this problem?

Thanks!

Giacomo Ferrera

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,292 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kyle Wang 5,531 Reputation points
    2021-08-25T08:14:05.597+00:00

    Hi GiacomoFerrera-6510,

    Welcome to our Microsoft Q&A platform!

    1.Make sure the iPhone is added to Devices of your Provisioning Profile.

    2.Download the provisioning certificate on your Mac.

    3.Go to Project Option > iOS Bundle Signing > remove the "Entitlements.plist"(if exists) in Custom Entitlements.

    4.Select "Manual Provisioning" under Bundle Signing.

    5.Delete the bin and obj folder under the project path, and rebuild the project.

    And here is the document about Manual provisioning for Xamarin.iOS you can refer to.

    Regards,
    Kyle


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful