尝试在 iPhone 上调试之前运行正常的应用程序时出错

Error when attempting to debug an app on iPhone which was previously working

在我将开发搁置一段时间(大约 4 个月)之前,我已经成功调试了我的 iOS 应用程序一段时间。显然在那段时间发生了一些变化,因为现在我得到了错误:

Failed to codesign 'bin/iPhone/Debug/device-builds/iphone8.2-15.2/OML_iOS.app': Warning: unable to build chain to self-signed root for signer "Apple Development: Prescott Chartier (CGGJVT9YJC)"

我找不到关于此错误的任何信息。我将 Visual Studio 2022 与 MAC 配对使用。两台机器都已更新为 Visual Studio 和 XCode 的最新版本。我认为我的问题可能与以下内容有关 link:

https://developer.apple.com/support/expiration

但我不能确定,Apple 要求您为他们的信息的任何支持或解释付费,我太穷了。大声笑如果有人可以帮助我解决这个问题,我将不胜感激。谢谢。

正如我所怀疑的那样,这个问题与我提供的 link 中的信息有关。我从 https://www.apple.com/certificateauthority/ 下载并安装了 Worldwide Developer Relations - G3 (Expiring 02/20/2030 00:00:00 UTC) 到我的 Macbook,问题消失了。安装的证书表明它仍然有效但显然不是,也许它被Apple吊销了我真的不知道。