ios 在钥匙串中找不到有效的 iPhone 代码签名密钥

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19039175/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 01:45:13  来源:igfitidea点击:

No valid iPhone code signing keys found in keychain

iosiphoneios-simulatorxamarin

提问by Vaclav Elias

So I downloaded to my Mac Pro the XCode 5 and Xamarin and created Single View Hello World application and excited to launch it through the simulator I run it and?

因此,我将 XCode 5 和 Xamarin 下载到我的 Mac Pro 并创建了 Single View Hello World 应用程序,并很高兴通过我运行它的模拟器启动它?

I got this error No valid iPhone code signing keys found in keychain.

我收到此错误No valid iPhone code signature keys found in keychain

Nice, I read all threads here and there, past and future but non of them helped as I just wanted to run it on the iOS simulator and not on the device.

很好,我在这里和那里阅读了过去和未来的所有线程,但没有一个有帮助,因为我只想在 iOS 模拟器上而不是在设备上运行它。

I have realised that I cannot even switch to a different version of Simulator which are already on the laptop, the Simulator version 6 and 7 when I go to Run - Run With -> There is only Mono Soft Debugger for iPhone.

我意识到我什至无法切换到笔记本电脑上已有的不同版本的模拟器,当我转到运行 - 运行方式 - > iPhone 只有 Mono Soft Debugger 时,模拟器版本 6 和 7。

When I downloaded Tasky example project, this one is working fine and I can switch different types of Simulator.

当我下载 Tasky 示例项目时,这个项目运行良好,我可以切换不同类型的模拟器。

Any advise which is not listed already on Interent or future networks?

任何尚未在 Interent 或未来网络上列出的建议?

采纳答案by Alfonso Leon

It′s really simple, in the drop down (Solution Platforms) from the toolbar chose the right one, if you′re debugging in an iPhone/iPad chose that, if not change to simulator, the problem will go away, there′s no need for removing anything.

真的很简单,在工具栏的下拉菜单(解决方案平台)中选择正确的,如果你在iPhone/iPad上调试就选择那个,如果不换模拟器,问题就会消失,有不需要删除任何东西。

If you can't find the corresponding drop-down menu, check out this tutorialon how to make it visible. Once you can see the Solution Platforms combobox in the toolbar, you can select iPhoneSimulation and the problem will go away.

如果找不到相应的下拉菜单,请查看本教程,了解如何使其可见。一旦您可以在工具栏中看到解决方案平台组合框,您就可以选择 iPhoneSimulation,问题就会消失。

回答by Vaclav Elias

After two days of no sleep I found a solution for this particular problem, not sure if it is the best one but here you are, one of this should work:

经过两天的睡眠,我找到了解决这个特定问题的方法,不确定它是否是最好的,但在这里,其中一个应该有效:

1) Go to Project -> Solution Options -> Configurations

1) 转到项目 -> 解决方案选项 -> 配置

I have removed: Release|iPhone, Debug|iPhone and this is where it started working also for any other project.

我已经删除了:Release|iPhone、Debug|iPhone,这也是它开始为任何其他项目工作的地方。

2) Maybe before the step 1) just try to change in -> Configurations -> Configurations Mappings the platform from iPhone to iPhoneSimulator.

2) 也许在步骤 1) 之前尝试更改 -> Configurations -> Configurations 将平台从 iPhone 映射到 iPhoneSimulator。

If this is not going to work, try 1)

如果这不起作用,请尝试 1)

I hope this is going to help some of you and save tons of time!!

我希望这会帮助你们中的一些人并节省大量时间!!

Cheers

干杯

回答by Vaclav Elias

Today I had the same issue after Xamarinupgrade. I tried to run my application in the simulator. The solution was however different.

今天我在Xamarin升级后遇到了同样的问题。我试图在模拟器中运行我的应用程序。然而,解决方案是不同的。

Please note that all the solutions mentioned here on this page from others might have been right in certain time or are right and works in certain circumstances.

请注意,在此页面上提到的所有其他人的解决方案可能在某些时候是正确的,或者在某些情况下是正确的并且有效。

Today's solution:

今天的解决方案:

Go to Project-> "Name of your project" Options-> Build-> iOS Bundle Signing-> Custom Entitlements- removeEntitlements.plist from the textbox -> Click OK

转到项目-> “项目名称”选项->构建-> iOS 捆绑签名->自定义权利-从文本框中删除Entitlements.plist -> 单击确定

Thanks

谢谢

回答by ForceMagic

I have resetted my Mac Book pro keychain and I encounter this issue.

我已经重置了我的 Mac Book pro 钥匙串,但遇到了这个问题。

When that happens, go in XCode and ensure that you are properly logged on into your Apple ID. If so, you should see your development group, you may have to click Join once again.

发生这种情况时,请进入 XCode 并确保您已正确登录到您的 Apple ID。如果是这样,您应该会看到您的开发组,您可能需要再次单击加入。

Read the following post, it explains everything.

阅读以下帖子,它解释了一切

回答by rock_walker

One more solution.
In Releaseconfiguration I successfully built my app, but in Debug- had the same issue, as in topic.

另一种解决方案。
发布配置中,我成功构建了我的应用程序,但在调试中- 遇到了与主题相同的问题。

Go to your startup Project-> Options -> Build -> iOS Bundle Signing. Then check your Signing Identityand Provisioning Profilefor each Configuration Debugand Release.

转到您的启动Project-> Options -> Build -> iOS Bundle Signing。然后检查每个配置调试发布的签名标识供应配置文件

In my case Releaseconfiguration was setup-ed correctly (several days ago by me) with values:
- Signing Identity: Developer(Automatic)
- Provisioning Profile: Automatic

在我的情况下,发布配置已正确设置(我几天前),其值:
-签名身份:开发人员(自动)
-配置文件:自动

But Debugconfiguration was silently corrupted somehow:
- Signing Identity: Unknown (Iphone Distribution: name of my company)
- Provisioning Profile: No matching profiles found

但是调试配置不知何故被悄悄损坏:
-签名身份:未知(Iphone 分发:我公司的名称
-配置文件:找不到匹配的配置文件

Thus, fix your Debug configuration to be equal with Release.

因此,修复您的 Debug 配置以使其与 Release 相同。

回答by vincent

I am on MacOSX and I have encountered this issue on Xamarin Studio when debugging using Debug|iPhoneSimulation.

我使用的是 MacOSX,在使用 Debug|iPhoneSimulation 进行调试时,我在 Xamarin Studio 上遇到了这个问题。

The error will just keep on repeating. What has worked for me was this link Answered by KMullins

错误只会不断重复。对我有用的是 KMullins 回答的这个链接

This is due to an expired profile that was renewed.

这是由于已更新的过期配置文件。