.NET Maui iOS设备签名异常求助:部署真机失败
我的.NET Maui项目在Android和iOS模拟器上运行完全正常,但部署到iOS真机时触发签名相关错误,具体日志如下:
Xamarin.Messaging.IDB.Local.AppleIDPasswordProvider Error: 0 : There was an error while trying to retrieve the Apple account passwords list
翻译:Xamarin.Messaging.IDB.Local.AppleIDPasswordProvider 错误: 0 : 尝试获取Apple账户密码列表时出错
Xamarin.Messaging.Client.MessagingClient Error: 0 : Client vs32424codyj - There was an error while posting a message to topic xvs/idb/get-signing-identities. There were no receiver listening to that topic.: 11/28/2023 21:09:01Z
翻译:Xamarin.Messaging.Client.MessagingClient 错误: 0 : 客户端vs32424codyj - 向主题xvs/idb/get-signing-identities发送消息时出错,没有接收器监听该主题。时间: 2023年11月28日 21:09:01Z
Xamarin.iOS.Windows.WindowsiOSException: Could not install the application 'C:\Users\codyj\AppData\Local\Temp\Xamarin\HotRestart\Signing\QuickDraw.Mobile.app\out\QuickDraw.Mobile.ipa' on the device Cody Business iPhone. Details: ApplicationVerificationFailed|0xE8008015 - Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.sKO8aG/extracted/Payload/QuickDraw.Mobile.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)
翻译:Xamarin.iOS.Windows.WindowsiOSException: 无法在设备"Cody Business iPhone"上安装应用程序'C:\Users\codyj\AppData\Local\Temp\Xamarin\HotRestart\Signing\QuickDraw.Mobile.app\out\QuickDraw.Mobile.ipa'。详细信息: ApplicationVerificationFailed|0xE8008015 - 无法验证/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.sKO8aG/extracted/Payload/QuickDraw.Mobile.app的代码签名: 0xe8008015 (未找到此可执行文件对应的有效配置文件)
仅当前项目出现该问题,我已尝试以下排查操作:
- 在Apple开发者门户吊销所有证书,让Visual Studio自动重新生成
- 移除并重新添加Visual Studio中的Apple账户,吊销并重新生成API密钥
- 在另一台Windows电脑和Mac上尝试运行项目
- 清理、重建项目,将csproj修改为最简形式
- 尝试手动配置签名
我创建了全新的Maui项目,可正常部署到iOS真机;同时将新项目中定义签名密钥和配置文件的PropertyGroup复制到当前问题项目中(使用通配符标识符),但问题仍未解决。
内容的提问来源于stack exchange,提问作者Ace Software

