简体   繁体   English

Xamarin.iOS 新的默认项目模板应用程序显示错误:SecTaskLoadEntitlements failed error=22

[英]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:我在 Visual Studio 2017 中设置了一个新的默认项目模板 Xamarin.iOS 应用程序,并希望在应用程序显示以下调试信息时在我的 Mac mini 构建主机上测试该应用程序:

iOSTestApp[...] SecTaskLoadEntitlements failed error=22 iOSTestApp[...] SecTaskLoadEntitlements 失败错误=22

iOSTestApp[...] SecTaskCopyDebugDescription: iOSTestApp iOSTestApp[...] SecTaskCopyDebugDescription: iOSTestApp

After reading this question: I thought it was related to the signing of the Entitlements .阅读完这个问题后:我认为这与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编辑:更新 VS 15.9.2 -> 15.9.5 但没有变化

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!检查任何最近编写的代码是否有无限循环!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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