ios (0xE8008018): 用于签署可执行文件的身份不再有效
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31484742/
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
(0xE8008018): The identity used to sign the executable is no longer valid
提问by Hatem Alimam
I'm trying to debug my app on Xcode and I'm having the following error:
我正在尝试在 Xcode 上调试我的应用程序,但出现以下错误:
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).
Now I know there are many questions regarding this issue, and I have tried every possible way to solve it, what I have tried so far (didn't work):
现在我知道关于这个问题有很多问题,我已经尝试了一切可能的方法来解决它,到目前为止我已经尝试过(没有奏效):
- Some suggested to restart Xcode.
- Refreshing the account.
- Deleting all the certificates from the keychain.
- Revoking all the certificates from the member center.
- Installing the certificates manually.
- Checked my Devices clocks (obviously)
- Removed Xcode (disparately) and re-installed it.
- Checking my project Build config, and made sure that the developer account is selected.
- Checked my account expiration date (it's renewed 5 days ago)
- Checked if I have to accept some Conditions and Terms (none)
- Disabled the devices I have in the Member profile
- Tested on multiple iPhones (same result)
- Checked out a git tag/branch which is stable (I thought the project might be corrupted also disparately)
- 有人建议重新启动Xcode。
- 刷新帐户。
- 从钥匙串中删除所有证书。
- 撤销会员中心的所有证书。
- 手动安装证书。
- 检查我的设备时钟(显然)
- 删除 Xcode(完全不同)并重新安装它。
- 检查我的项目构建配置,并确保选择了开发者帐户。
- 检查我的帐户到期日期(已在 5 天前续订)
- 检查我是否必须接受某些条件和条款(无)
- 禁用了我在会员资料中的设备
- 在多部 iPhone 上测试(结果相同)
- 检查了一个稳定的 git tag/branch(我认为该项目可能也完全不同)
My concern is that it might be a temporary issue from apple, or a bug in Xcode, although it was working hours ago on my iMac, when I switched to the MacBook Pro I had this issue (and I always do this with no problems at all).
我担心这可能是 Apple 的临时问题,或者 Xcode 中的错误,尽管它在几个小时前在我的 iMac 上工作,当我切换到 MacBook Pro 时,我遇到了这个问题(而且我总是在全部)。
Running:
跑步:
- OSX Yosemite 10.10.4 (14E46)
- Xcode 6.4
- OSX 优胜美地 10.10.4 (14E46)
- Xcode 6.4
采纳答案by Hatem Alimam
After hours of investigating, the shell script for signing the project was failing at some point, without reporting back to Xcode.
经过数小时的调查,用于签署项目的 shell 脚本在某个时候失败了,没有向 Xcode 报告。
I noticed that in the DerivedData folder (found in /Users/yourUsername/Library/Developer/Xcode/DerivedData/
) of Xcode there were two folders with the same name of my project ending with a different hash, for example:
我注意到在/Users/yourUsername/Library/Developer/Xcode/DerivedData/
Xcode的 DerivedData 文件夹(在
ProjectName--dcakkvkdhqvxstehdiuzwbpsmdal
ProjectName--kurbctkdhqvxuytrwnczwbpsmdal
I closed Xcode, and made sure to delete both folders, somehow Xcode generated two different folders for the project at some point, restarting Xcode after the deletion of the folders fixed this.
我关闭了 Xcode,并确保删除了两个文件夹,不知何故 Xcode 在某个时候为项目生成了两个不同的文件夹,在删除文件夹后重新启动 Xcode 修复了这个问题。
回答by Sebastián Lara
Trying to remove and re-add your apple id, it works for me.
尝试删除并重新添加您的 Apple ID,它对我有用。
- xcode: Preferences...
- Accounts
- Select your apple account
- Remove that (-)
- Add again your apple account (+)
- Run yor app!
- xcode:首选项...
- 帐户
- 选择你的苹果账户
- 删除那个 (-)
- 再次添加您的苹果帐户 (+)
- 运行你的应用程序!
回答by Yeong Hoon Cha
I have experienced the same situation.
我也遇到过同样的情况。
But it was cleared by deleting and downloading again the provisioning profiles on my mac.
但是通过删除并再次下载我的 mac 上的配置文件来清除它。
The location of the provisioning profiles is:
配置文件的位置是:
/Users/yourUsername/Library/MobileDevice/Provisioning Profiles/
/Users/yourUsername/Library/MobileDevice/Provisioning Profiles/
回答by EugeneD
I had the same issue. What helped me:
我遇到过同样的问题。什么帮助了我:
- Set Profile to a wrong one (other project)
- Run project and received the popup with information that provision profile is wrong and proposal to Fix the issue
- Press Fix the issue
- 将 Profile 设置为错误的(其他项目)
- 运行项目并收到弹出窗口,其中包含配置文件错误的信息以及修复问题的建议
- 按修复问题
回答by Shehabic
A Solution that might help some People
一个可能对某些人有帮助的解决方案
- Go to developer.apple.com
- go to the identities/certificates page
- then click on Provisioning Profiles If you found few invalid
- profiles just edit them
- Make sure you check your main profile.
- Click generate and close.
- Now in XCode, remove your profile Add it again.
- You're good to go
- 前往 developer.apple.com
- 转到身份/证书页面
- 然后点击 Provisioning Profiles 如果你发现几个无效
- 个人资料只需编辑它们
- 确保检查您的主要个人资料。
- 单击生成并关闭。
- 现在在 XCode 中,删除您的配置文件再次添加它。
- 你很高兴去
This will happen if you changed your Primary Email
如果您更改了主要电子邮件地址,就会发生这种情况
回答by Waqas Karim
Just login to your developer account and create new developer certificate or revoke older one an create new. It will resolve the issue.
只需登录您的开发者帐户并创建新的开发者证书或撤销旧证书并创建新证书。它将解决问题。
回答by Alexnaldo Santos
Delete files and folders from:
从以下位置删除文件和文件夹:
- ~/Library/MobileDevice/Provisioning Profiles/
- ~/Library/Developer/Xcode/DerivedData/
- ~/图书馆/移动设备/配置文件/
- 〜/图书馆/开发人员/Xcode/DerivedData/
回答by danger2k7
The only solution for this problem is to delete the folder from
此问题的唯一解决方案是从
~/Library/Developer/Xcode/DerivedData/YourAppName-
This way everything will get back to normal !
这样一切都会恢复正常!
Cheers !
干杯!
回答by Buntylm
All of the answers helped a lot but in my case developer certificate got expired that's i was getting this error while building the app.
所有的答案都有很大帮助,但在我的情况下,开发人员证书已过期,那是我在构建应用程序时遇到此错误。
Keychain -> Login -> My Certificates
Keychain -> Login -> My Certificates
So just removed the certificate and created new one worked fine for me.
所以刚刚删除了证书并创建了新的证书对我来说很好用。
回答by DontKnow
NONE of this worked for me
这些都不适合我
vomako 's answer at The identity used to sign the executable is no longer validDID work -
vomako 在用于签署可执行文件的身份不再有效的回答 DID 工作 -
i.e. "Solution within Xcode:
即“Xcode中的解决方案:
In Xcode, go to Preferences --> Accounts --> View Details
在 Xcode 中,转到首选项 --> 帐户 --> 查看详细信息
Press the refresh button in the lower left corner (called Download all in Xcode 7)"
按左下角的刷新按钮(在 Xcode 7 中称为 Download all)”
end of his post
他的帖子结束
It's a little refresh symbol now (circling arrow) Then click on the Request button
现在是一个小刷新符号(圆圈箭头)然后单击“请求”按钮
Hope this saves somebody some time
希望这可以节省一些时间