用于签署可执行文件的身份不再有效(iOS 8+ / Xcode 7)

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

The identity used to sign the executable is no longer valid (iOS 8+ / Xcode 7)

iosxcodexcode7provisioning-profileios-provisioning

提问by Moucheg

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've already tried almost everything I've found on SO but nothing worked for me.

我已经尝试了几乎所有我在 SO 上找到的东西,但没有任何效果对我有用。

enter image description here

在此处输入图片说明

I'm not sure when it started to happen, I think it was just after I tried to add a share extension to my app.

我不确定它是什么时候开始发生的,我想是在我尝试向我的应用程序添加共享扩展之后。

I've re-generated the provisioning profiles after adding the share extension (and enabling the app groups in Target > Capabilities) and have downloaded them via Xcode.

添加共享扩展(并在Target > Capabilities 中启用应用程序组)后,我重新生成了配置文件,并通过 Xcode 下载了它们。

Any ideas on why this could happen ?

关于为什么会发生这种情况的任何想法?

回答by Moucheg

So I finally managed to make it work though I'm not exactly sure which of the following had to be done.

因此,尽管我不确定必须完成以下哪些操作,但我终于设法使其正常工作。

  1. I deleted my Apple ID and all the provisioning profiles.
  2. Then I added the same Apple ID and downloaded the provisioning profiles (Xcode > Preferences... > Accounts)
  1. 我删除了我的 Apple ID 和所有配置文件。
  2. 然后我添加了相同的 Apple ID 并下载了配置文件 ( Xcode > Preferences... > Accounts)

From what I had read on SO it should have worked here, but in my case it wasn't.

从我读过的内容来看,它应该在这里工作,但在我的情况下它不是。

So what I did was:

所以我所做的是:

  • going to Window > Devices
  • then right click on my device on the left hand corner
  • and click on Show provisioning profiles...
  • I then deleted all the provisioning profiles I had on my phone
  • 即将 Window > Devices
  • 然后右键单击左下角的我的设备
  • 然后点击 Show provisioning profiles...
  • 然后我删除了我手机上的所有配置文件

After doing what I said above it worked.

在做了我上面说的之后,它起作用了。

Hope this can be helpful.

希望这会有所帮助。

回答by ylgwhyh

Xcode: Preferences...

Xcode:首选项...

  1. Accounts
  2. Select your apple account
  3. Remove that account (-)
  4. Add again your apple account (+)
  5. Restart Xcode
  6. Run yor app!
  1. 帐户
  2. 选择你的苹果账户
  3. 删除该帐户 (-)
  4. 再次添加您的苹果帐户 (+)
  5. 重启Xcode
  6. 运行你的应用程序!

回答by Chris

Another possible cause for this error message is your team not being set. Whenever I start a project, mine defaults to none and this error message always gets me. Once I change the team to one with a valid cert, everything works

此错误消息的另一个可能原因是您的团队未设置。每当我开始一个项目时,我的默认为 none 并且这个错误消息总是让我明白。一旦我将团队更改为具有有效证书的团队,一切正常

enter image description here

在此处输入图片说明