xcode 在 iPhone 上调试时出现错误“用于签署可执行文件的身份不再有效。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32370073/
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
Got error "The identity used to sign the executable is no longer valid."when debug on iPhone
提问by Mutawe
I am using Xcode 7 beta 6 on Yosemite, but I have encounter the problem
我在 Yosemite 上使用 Xcode 7 beta 6,但我遇到了问题
The identity used to sign the executable is no longer valid.
用于签署可执行文件的身份不再有效。
Error when I am trying to build my app on my iPhone. The detailed information is:
当我尝试在 iPhone 上构建我的应用程序时出错。详细信息是:
Please verify that your device's clock is properly set, and that your signing certificate is not expired. (0xE8008018).
请确认您的设备时钟设置正确,并且您的签名证书未过期。(0xE8008018)。
So I can't debug in my iPhone device now.
所以我现在无法在我的 iPhone 设备中进行调试。
Anyone has any idea for this?
有人对此有任何想法吗?
回答by Aadi007
This is due to changes in the provisioning file not present on your machine.
这是由于您的机器上不存在的配置文件发生了变化。
Quick fix (Xcode 7 iOS9
):
快速修复 ( Xcode 7 iOS9
):
Xcode -> Preferences -> Account -> Select Apple ID -> View Details -> Download All
now try to run the code.
现在尝试运行代码。
Note: if still the problem persists, follow step mentioned above for every Apple ID and try to run again.
注意:如果问题仍然存在,请针对每个 Apple ID 执行上述步骤并再次尝试运行。
回答by ylgwhyh
I have solved the same problem. Just from "https://developer.apple.com/account/ios/profile/production/create" re-created the new Provisioning Profiles. Then download and install the new Provisioning Profiles of (Development and Distribution).
我已经解决了同样的问题。只是从“ https://developer.apple.com/account/ios/profile/production/create”重新创建了新的配置文件。然后下载并安装(开发和分发)的新配置文件。
回答by Miroslav
Just make a new certificate and regenerate the provisioning profile - and everything will be ok.
只需制作一个新证书并重新生成配置文件 - 一切都会好起来的。