xcode 身份“iPhone 开发人员”与任何有效、未过期的证书/私钥对都不匹配

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15673657/
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-09-15 03:04:50  来源:igfitidea点击:

The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair

xcodexcode4.5code-signing

提问by MNY

It never happened to me before, I already downloaded sample code before, but now im getting this error:

我以前从未发生过,我之前已经下载了示例代码,但现在我收到此错误:

enter image description here

在此处输入图片说明

I saw some questions with this error, but they say to check your "code signing" and I dont see what is wrong there...

我看到了一些有关此错误的问题,但他们说要检查您的“代码签名”,但我看不出那里有什么问题...

enter image description here

在此处输入图片说明

Please help, im freaking out

请帮忙,我吓坏了

回答by Tendulkar

The error means provisioning profile doesn't exist So

错误意味着配置文件不存在所以

  1. Check the Bundle Identifier in the plist file .
  2. Go to Codesign Identity and click on the dropdown menu and click on the matching Provisioning Profile ( Matching provisioning profile appears in Black color )
  1. 检查 plist 文件中的 Bundle Identifier。
  2. 转到 Codesign Identity 并单击下拉菜单,然后单击匹配的配置文件(匹配的配置文件以黑色显示)

回答by bkh

Since the problem deals with code signing, you just have to uncheck the "Code Sign Application" box on Summary Properties. It worked fine for me.

由于问题涉及代码签名,您只需取消选中摘要属性上的“代码签名应用程序”框。它对我来说很好。

回答by chaberekw

I had the same error and I found this: How to make an IPA on XCode 4.6?

我遇到了同样的错误,我发现了这个:如何在 XCode 4.6 上制作 IPA?

These steps work for me: 1. Go to /Applications.

这些步骤对我有用: 1. 转到 /Applications。

  1. Right click on XCode and select 'Show Package Contents'.
  2. CopyContents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/SDKSettings.plist to your desktop. (Make sure to actually copy and paste. No drag and drop)
  3. Open it and under DefaultProperties set CODE_SIGNING_REQUIRED to NO.
  4. Copy it back and replace the original file.
  5. Restart XCode.
  6. Open your project.
  7. In Project Navigator select your project and open Build Settings section of your porject (and not any particular target)
  8. Under Code Signing find Code Signing Identity and for both Debug and Release modes setAny iOS SKD to Don't Code Sign.
  9. Now you should be able to build your project without any errors.
  1. 右键单击 XCode 并选择“显示包内容”。
  2. 将Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/SDKSettings.plist 复制到您的桌面。(确保实际复制和粘贴。不要拖放)
  3. 打开它并在 DefaultProperties 下将 CODE_SIGNING_REQUIRED 设置为 NO。
  4. 将其复制回来并替换原始文件。
  5. 重新启动 XCode。
  6. 打开您的项目。
  7. 在 Project Navigator 中选择您的项目并打开您的项目的 Build Settings 部分(而不是任何特定目标)
  8. 在代码签名下找到代码签名标识,对于调试和发布模式,将任何 iOS SKD 设置为不进行代码签名。
  9. 现在您应该能够在没有任何错误的情况下构建您的项目。

回答by zijianz

I am suffering the same problem. Most of the answers saying things like Bundle Identifier, provisioning profile, or crap like that.

我遇到了同样的问题。大多数答案都说诸如捆绑标识符、配置文件或类似的废话。

If people know what those are, they won't come to internet, OK?

如果人们知道那些是什么,他们就不会上网了,好吗?

check this

检查这个

http://www.techotopia.com/index.php/Testing_Apps_on_the_iPhone_–_Developer_Certificates_and_Provisioning_Profiles

http://www.techotopia.com/index.php/Testing_Apps_on_the_iPhone_–_Developer_Certificates_and_Provisioning_Profiles

it explains everything.

它解释了一切。

回答by sendok3n

Possible fix (that worked for me) : I changed the scheme "iOS Device" to "iPad 6.1 Simulator" or "iPhone 6.1 Simulator" then I rebuilt the project without this error.

可能的修复(对我有用):我将方案“iOS 设备”更改为“iPad 6.1 模拟器”或“iPhone 6.1 模拟器”,然后我重建了项目而没有出现此错误。