ios 用于签署可执行文件的身份不再有效

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

The identity used to sign the executable is no longer valid

iosxcodeipadxcode4

提问by Hayk Melkonyan

I have an application that I am debugging on iPad. 2 days ago I wanted to debug a same updated application but I am having this error.

我有一个正在 iPad 上调试的应用程序。2 天前,我想调试相同的更新应用程序,但出现此错误。

The identity used to sign the executable is no longer valid.

Please verify that your device's clock is properly set, and that your signing certificate is not expired.

(0xE8008018).

用于签署可执行文件的身份不再有效。

请确认您的设备时钟设置正确,并且您的签名证书未过期。

(0xE8008018)。

I don't have iPhone Developer certificate yet, but I have debugged this game once.

我还没有 iPhone 开发者证书,但我已经调试过这个游戏一次。

采纳答案by Namratha

Try restarting XCode. It worked for me.

尝试重新启动 XCode。它对我有用。

回答by vomako

Neither restarting Xcode nor restarting my Mac helped.

重新启动 Xcode 或重新启动我的 Mac 都没有帮助。

Solution within Xcode:

Xcode 内的解决方案:

  1. In Xcode, go to Preferences --> Accounts --> View Details
  2. Press the + symbol and select iOS Development
  3. Press the refresh button in the lower left corner (called Download allin Xcode 7)
  1. 在 Xcode 中,转到首选项 --> 帐户 --> 查看详细信息
  2. 按 + 符号并选择 iOS 开发
  3. 按左下角的刷新按钮(Download all在Xcode 7中调用)

PS:

PS:

  • Sometimes it may also help to delete invalid provisioning profiles: right-click -> move to trash
  • I saw this error exactly one year after signing up as an Apple developer.
  • 有时它也可能有助于删除无效的配置文件:右键单击 -> 移至垃圾箱
  • 在注册成为 Apple 开发人员一年后,我看到了这个错误。

回答by dulgan

This may happen when your certificate expire in your Key Chain.

当您的密钥链中的证书过期时,可能会发生这种情况。

EDIT: I'd now recommand certand sighto generate your certificates and provisionning profiles. These are two commands part of the fastlanetools from KrauseFx.

编辑:我现在建议使用certsigh来生成您的证书和配置文件。这是KrauseFx的fastlane工具的两个命令部分。

Using cert & sigh:

使用证书和叹息:

  1. Open a terminal and type cert
  2. Answer the prompted questions to sect your user, password, team, app, etc.
  3. Open a terminal and type sigh
  4. Answer the prompted questions to sect your user, password, team, app, etc.
  5. Select the right profile in Code Signing Identity (iPhone Developer)
  1. 打开终端并输入 cert
  2. 回答提示的问题以设置您的用户、密码、团队、应用程序等。
  3. 打开终端并输入 sigh
  4. 回答提示的问题以设置您的用户、密码、团队、应用程序等。
  5. 在代码签名身份(iPhone 开发人员)中选择正确的配置文件

Conventional way:

常规方式:

  1. Just go to the new provisioning portal : Certificates, Identifier, Profiles
  2. Login with your developer account.
  3. Go to Certificates and click the Plus button.
  4. Then select iOS Apps Development and click Continue.
  5. Follow the whole process and download the newly generated certificate.
  6. Download it and put it in your keychain.
  7. Update your profiles from XCode Organizer devices window
  8. Select the right profile in Code Signing Identity (iPhone Developer)
  1. 只需转到新的配置门户:证书、标识符、配置文件
  2. 使用您的开发者帐户登录。
  3. 转到证书并单击加号按钮。
  4. 然后选择 iOS Apps Development 并单击继续。
  5. 按照整个过程并下载新生成的证书。
  6. 下载它并将其放入您的钥匙串中。
  7. 从 XCode Organizer 设备窗口更新您的配置文件
  8. 在代码签名身份(iPhone 开发人员)中选择正确的配置文件

回答by AnthonyBlake

If all the aboveprevious suggestionsfail after renewing your certificate, as they did for me, browse to the following location;

如果更新您的证书后上述所有建议都失败了,就像他们对我所做的那样,请浏览到以下位置;

~/Library/MobileDevice/Provisioning Profiles

~/Library/MobileDevice/Provisioning Profiles

...and delete your provisioning profiles.

...并删除您的配置文件。

Then download your provisioning profile again from;

然后再次下载您的配置文件;

https://developer.apple.com/account/ios/profile/profileList.action

https://developer.apple.com/account/ios/profile/profileList.action

回答by Andrew

If you are using jailcoder, make sure you jailbreak your iphone successfully. Don't forget install AppSync for IOS in Cydia.

如果您使用的是 jailcoder,请确保您的 iphone 成功越狱。不要忘记在 Cydia 中安装 AppSync for IOS。

回答by Kevin S

In the latest update from xcode this problem usually occurs when your certificate has expired and xcode continues to use the old one until it has expired.

在 xcode 的最新更新中,当您的证书已过期并且 xcode 继续使用旧证书直到过期时,通常会发生此问题。

Closing xcode and opening it again will fire off an automatic process of downloading your new certificate and getting your app working.

关闭 xcode 并再次打开它会触发下载新证书并使应用程序运行的自动过程。

Just close xcode right down (Cmd + Q) then open it back up again, load your project and hit play .. it will ask you if you'd like assistance to auto fix the certificate problem then you just follow the onscreen instructions and it does all the hard work for you :)

只需关闭xcode(Cmd + Q)然后再次打开它,加载您的项目并点击播放..它会询问您是否需要帮助来自动修复证书问题然后您只需按照屏幕上的说明进行操作即可为你做所有的辛苦工作:)

回答by Sebastián Lara

You have your provisioning profiles outdated.

您的配置文件已过时。

  1. xcode
  2. Preferences
  3. Accounts
  4. Select your apple id
  5. View Details (Right-bottom corner)
  6. Download All
  7. Run again and DONE!
  1. 代码
  2. 喜好
  3. 帐户
  4. 选择你的苹果id
  5. 查看详情(右下角)
  6. 全部下载
  7. 再次运行并完成!

回答by arcady bob

This may be somewhat of an empirical approach but is worthwhile in the face of many commentators noting either "this worked for me" or "this didn't work for me". Firstly, the problem can lie in a number of locations, either your certificates (code signing identities) or your provisioning profiles. Identifying where the problem lies first before doing anything will save a lot of wasted effort. You will need to check in three places:

这可能是一种经验方法,但面对许多评论员指出“这对我有用”或“这对我不起作用”是值得的。首先,问题可能存在于多个位置,无论是您的证书(代码签名身份)还是您的配置文件。在做任何事情之前首先确定问题所在将节省大量浪费的精力。您需要在三个地方进行检查:

  1. XCode
  2. Keychain Access
  3. The Developer Portal (Developer Members Centre)
  1. 代码
  2. 钥匙串访问
  3. 开发者门户(开发者会员中心)

OK, in XCode click on the Project (Above the Targets Heading), select Build Settings and scroll to 'Code Signing'. Expand the 'CODE_SIGNING_IDENTITY' heading and you will see a bunch of identities (Debug, Release etc.) Each one of these will match up with a certificate in Keychain Access. Find the match and check the expiry date...if it has expired you will need to update it in the Developer Portal and download it. Check EVERY identity, not just the first one you find that has expired. Also, if it has expired you will need to regenerate any provisioning profile that used the expired certificate. If no problems with the certificates, check the expiry date of all the Provisioning Profiles. Once again, if they have expired, they will need to be regenerated.

好的,在 XCode 中单击项目(在目标标题上方),选择构建设置并滚动到“代码签名”。展开“CODE_SIGNING_IDENTITY”标题,您将看到一堆身份(调试、发布等),其中每一个都将与 Keychain Access 中的证书相匹配。找到匹配项并检查到期日期...如果它已过期,您将需要在开发者门户中更新并下载它。检查每个身份,而不仅仅是您发现的第一个已过期的身份。此外,如果它已过期,您将需要重新生成使用过期证书的任何配置文件。如果证书没有问题,请检查所有供应配置文件的到期日期。再一次,如果它们已经过期,它们将需要重新生成。

Once complete, repeat the same process for the TARGET you are trying to build for.

完成后,为您尝试构建的 TARGET 重复相同的过程。

None of this worked? An expired certificate is lurking in one of your provisioning profiles. A sign that this might be the case is that when you click on a CODE_SIGNING_IDENTITY the identity is below Other... eg.xcode example of dodgy identity

这些都不奏效吗?过期的证书潜伏在您的配置文件之一中。可能是这种情况的一个迹象是,当您单击 CODE_SIGNING_IDENTITY 时,身份低于其他...例如。狡猾身份的 xcode 示例

This is usually a sure sign that there is an expired certificate lurking about and that one of your profiles is using it.

这通常是一个确定的迹象,表明有一个过期的证书潜伏着,并且您的一个配置文件正在使用它。

回答by u54r

I had this problem with XCode 6.3 Below is the steps that worked for me.

我在使用 XCode 6.3 时遇到了这个问题 以下是对我有用的步骤。

Go to XCode > Preferences > AccountsSelect your developer account then click View Details...Click on the refreshbutton on the left bottom of the window. It should notify you that you're missing few certificates. Click Request. XCode automatically should download missing certificates. Click Doneand it should work.

转到XCode > Preferences > Accounts选择您的开发者帐户,然后单击View Details...单击refresh窗口左下角的按钮。它应该通知您缺少几个证书。单击Request。XCode 应自动下载缺少的证书。单击Done它应该可以工作。

回答by CoyBit

I faced to this problem when my membership was expired and I renewed it. I use xCode6 and I solve this problem by revoking expired developer certificate from Member Center and cleaning build folder ( alt+[Product>Clean] ). xCode handle others issue itself.

当我的会员资格到期并续订时,我遇到了这个问题。我使用 xCode6,我通过从会员中心吊销过期的开发人员证书并清理构建文件夹( alt+[Product>Clean] )来解决这个问题。xCode 自己处理其他问题。

See "Replacing Expired Certificates" section on this link: https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

请参阅此链接上的“更换过期证书”部分:https: //developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html