Xamarin IOS Unable to deploy to physical device

Srinath Mannam 291 Reputation points
2021-11-13T00:20:20.953+00:00

When I include "Entitlements.plist" in Custom Entitlements ( IOS Bundle Signing) then I get the following error, The solution builds without any problem but it is not deploying

exact Error

Severity Code Description Project File Line Suppression State

Error error MT1006: Could not install the application ##'/Users/XXXX/Library/Caches/Xamarin/mtbs/builds/YellowAnt.JobbyMobileApp.iOS/cef50debc52c8571c8bb10bd9cc99f0086b02ce0341137810cc3a728d69e59c4/bin/iPhone/Debug/device-##builds/iphone9.3-15.1/YellowAnt.JobbyMobileApp.iOS.app' on the device 'XXX???s iPhone': AMDeviceSecureInstallApplicationBundle returned: 0xe8008015

And If I remove the "Entitlements.plist" file in Custom Entitlements then it gets deployed in physical device and the above error is gone. But I get a new error ( The below error makes sense because I have not included any entitlements so it is unable to access the entitlement string.

exact Error

Error Domain=NSCocoaErrorDomain Code=3000 "no valid “aps-environment” entitlement string found for application"

UserInfo={NSLocalizedDescription=no valid “aps-environment” entitlement string found for application}

Can someone please about this?

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

Accepted answer
  1. Srinath Mannam 291 Reputation points
    2021-11-17T08:53:17.473+00:00

    I found the problem, the problem was somehow in my entitlements.plist

    Push Notifications -> Enable Push Notifications is unchecked (Needs to be checked).

    Not sure how this has happened, but after checking it back again it works.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.