Xcode 苹果开发者证书过期:(0xE8008018)

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

Xcode apple developer certificate expiration: (0xE8008018)

xcodecertificateprovisioning

提问by Jan ATAC

Just for the record: I had a stranger response from Xcode when I tried to run my app on my device.

只是为了记录:当我尝试在我的设备上运行我的应用程序时,我收到了来自 Xcode 的陌生回应。

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

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

My certificate expires today at midnight AND my several provisioning profiles need a serious cleaning.

我的证书今天午夜到期,我的几个配置文件需要认真清理。

What is the administrative process to get it all renewed to get a build AND run working?

更新所有内容以使构建和运行正常工作的管理流程是什么?

采纳答案by Jan ATAC

You need to :

你需要 :

  1. Connect to Apple Developer Member Center
  2. Click on 'Certificates, Identifiers & Profiles'
  3. iOS Apps must not have an expiration date notification or else renew it, and come back here
  4. Click on 'Provisioning profiles'
  5. If no one has 'active' status, that is the problem
  6. Add one for 'iOS App Development'
  7. Choose the right 'App ID' : your BundleID, or wildcard
  8. The next screen should show you valid certificates. If not, go create one (click on 'Certificates' item on the left menu) and come back here
  9. Choose one certificate
  10. Then you see all the devices you declared in 'Devices', select those on which you want to run your app
  11. Give a profile name and generate it
  12. You will download a file named : [profile name].mobileprovision
  13. Double-click to install it
  14. At this step, my problem was solved. Build and run on my phone is ok.
  1. 连接到 Apple 开发者会员中心
  2. 单击“证书、标识符和配置文件”
  3. iOS 应用程序不能有到期日期通知或更新它,然后回到这里
  4. 单击“配置文件”
  5. 如果没有人处于“活动”状态,那就是问题所在
  6. 为“iOS App 开发”添加一个
  7. 选择正确的“App ID”:您的 BundleID 或通配符
  8. 下一个屏幕应显示有效证书。如果没有,请创建一个(单击左侧菜单上的“证书”项)并返回此处
  9. 选择一个证书
  10. 然后你会看到你在“设备”中声明的所有设备,选择你想要运行你的应用程序的设备
  11. 给出一个配置文件名称并生成它
  12. 您将下载一个名为:[profile name].mobileprovision 的文件
  13. 双击安装
  14. 到这一步,我的问题就解决了。在我的手机上构建和运行是可以的。

回答by Drew

I had the same exact thing only... all my profiles, certificates and everything were up-to-date in the Dev portal. What fixed it for me was under the General tab of my app's target, changing the 'Team' dropdown to none... and then back to my company. Forced Xcode to re-request whatever it thought it needed from the Dev Portal.

我只有完全相同的东西……我所有的个人资料、证书和所有内容在开发门户中都是最新的。为我修复的是在我的应用程序目标的“常规”选项卡下,将“团队”下拉列表更改为无...然后返回我的公司。强制 Xcode 从 Dev Portal 重新请求它认为需要的任何内容。

Back in business... :-)

回到工作... :-)

回答by RGriffiths

Or go to your Utilities/Keychain and delete all the certs there. Run from Xcode and it will sort it all out for you.

或者转到您的实用程序/钥匙串并删除那里的所有证书。从 Xcode 运行,它会为您整理所有内容。

回答by Andrey Solovyov

If you work in a group and suffer this problem, but your colleagues do not, you may ask somebody to export the developer profile as described in https://developer.apple.com/library/ios/recipes/xcode_help-accounts_preferences/articles/export_signing_assets.html

如果您在团队中工作并遇到此问题,但您的同事没有遇到此问题,您可以要求某人按照https://developer.apple.com/library/ios/recipes/xcode_help-accounts_preferences/articles 中的描述导出开发人员配置文件/export_signing_assets.html

Then import the .developerprofile file.

然后导入 .developerprofile 文件。

Worked like a charm for me.

对我来说就像一种魅力。

回答by mychar

Hi All Just delete the developer certificate and install it again.delete the account fomr xcode preferences and add it again. Works for me

大家好 只需删除开发者证书并重新安装。从 xcode 首选项中删除帐户并重新添加。对我来说有效

回答by anneblue

Restarting XCode made XCode solve the problem for me showing this prompt:

重新启动 XCode 使 XCode 为我解决了显示此提示的问题:

enter image description here

在此处输入图片说明

Just pressed "Fix Issue" and it worked.

只需按“修复问题”即可。

回答by Pankaj Kumar Katiyar

Delete all expired certificates from Keychain rest xcode will handle.

从钥匙串中删除所有过期的证书,其余 xcode 将处理。