Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin.iOS new default project template app shows error: SecTaskLoadEntitlements failed error=22

I set up a new default project template Xamarin.iOS App in Visual Studio 2017 and want to test the app on my Mac mini build host when the app displays the following debug info:

iOSTestApp[...] SecTaskLoadEntitlements failed error=22

iOSTestApp[...] SecTaskCopyDebugDescription: iOSTestApp

After reading this question: I thought it was related to the signing of the Entitlements. I don't use any Entitlements in the new app so that shouldn't be the problem.

Did anyone come across the same problem and knows how to deal with it?

My development setup is:

Microsoft Visual Studio Professional 2017 
Version 15.9.2

Microsoft .NET Framework
Version 4.7.03056

VisualStudio.Mac   1.0

Xamarin   4.12.3.72

Xamarin Designer   4.16.11

Xamarin Templates   1.1.127

Xamarin.iOS and Xamarin.Mac SDK   12.2.1.10

Edit: Updated VS 15.9.2 -> 15.9.5 but no changes

like image 691
Reepicheep Avatar asked Oct 18 '25 11:10

Reepicheep


1 Answers

For me, this error came up too. It was caused by an infinite recursive loop. I had a property that called itself by accident due to a typo:

string name;

public string Name {
    get => Name; // this capitalization error caused it. Should be name.
}

Check any recently written code for an infinite loop perhaps!

like image 81
Adam B Avatar answered Oct 21 '25 01:10

Adam B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!