Xamarin.ios 错误 MSB6006:“代码设计"退出代码 1

Xamarin.ios 错误 MSB6006:“代码设计

问题描述:

当我尝试在我的 iPhone 设备上测试我的应用时,我收到以下错误,我认为这与注册我的设备有关.

When trying to test my app on my device iPhone, I get the following error, I think it's something about registering my device.

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(3,3):错误 MSB6006:代码设计"以代码 1 退出. (MSB6006)(multifacturacion.iOS)

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(3,3): Error MSB6006: "codesign" exited with code 1. (MSB6006) (multifacturacion.iOS)

奇怪的是,同一台设备在另一台带有 xamarin 的 mac 上,如果它可以工作并且使用相同的项目.

The strange thing is that this same device in another mac with xamarin if it works and with the same project.

如果有人能帮我解决这个问题,我有几天时间寻找解决方案.

If someone can help me with this, I have several days looking for a solution.

我在 Visual Studio 中清理了解决方案后,这个问题就消失了.

This went away for me after I cleaned the solution in Visual Studio.

(是的,这是一个完整的答案,没有引用,这正是我为修复它所做的).

(yes this is a complete answer, there are no citations, this is just what I did to fix it).