简体   繁体   中英

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

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM