在钥匙串中找不到有效的iOS代码签名钥匙.您需要申请代码签名证书 [英] No valid iOS code signing keys found in keychain. You need to request a codesigning certificate

查看:624
本文介绍了在钥匙串中找不到有效的iOS代码签名钥匙.您需要申请代码签名证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我已经构建了Xamarin Forms应用程序,现在我想在物理iOS设备上进行测试.调试器成功运行了我的程序,但是不幸的是,当我在物理iPhone上部署程序时遇到了问题.

So I have build a Xamarin Forms application, that I now want to test on a physical iOS device. The debugger successfully run my program, but unfortunately I run into problems when I deploy my program on a physical iPhone.

为了部署我的应用程序,我执行了以下操作:

I did the following in order to deploy my app:

  1. 按照本教程操作,以便为我的应用程序创建免费的配置文件(
  1. Followed this tutorial in order to create a Free provisioning profile for my app (https://docs.microsoft.com/en-us/xamarin/ios/get-started/installation/device-provisioning/free-provisioning?tabs=windows) (successfully runs xcode 1 view app, and installs provisioning profile on phone)
  2. Switched xamarin to debug on a phyiscal device

bundle标识符自然匹配,并且我已完成以下操作来解决该问题:

The bundle identifier naturally matches, and I have done the following to solve the issue:

  • 将.csproj中"CodesignEntitlements"的值设置为null

仍然没有成功.我很好奇为什么Xamarin在我仍在调试的同时要求输入代码签名密钥.

Still no success. I'm curious why Xamarin asks for a code signing key, while I'm still just debugging..

非常感谢您的帮助

推荐答案

经过长时间的挣扎,我只是注意到自动配置对我的项目不再起作用,但我只是在iOS项目的.csproj中手动添加了Debug codesign密钥,我将其替换了.将"iPhone开发人员"转换为"Apple开发:yourmail.icloud.com(XYZ12345678)" 您可以在钥匙串中找到此标识符

After long struggling I just noticed that Automatic provisioning is not working anymore with my project but I just added Debug codesign key manually in .csproj of iOS project and I replaced "iPhone Developer" into "Apple Development: yourmail.icloud.com (XYZ12345678)" You can find this identifier in Your Keychain

这篇关于在钥匙串中找不到有效的iOS代码签名钥匙.您需要申请代码签名证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆