简体   繁体   English

修改日期和时间生成代码签名错误

[英]Modifying Date&Time generate a code signing error

To test some functionalities on my iOs app I had to change the date on the simulator to the 01/01/2021, the only way to do that is to change the date on the macOS first, I had to do that with the system preferences.要在我的 iOs 应用程序上测试某些功能,我必须将模拟器上的日期更改为 2021 年 1 月 1 日,唯一的方法是先更改 macOS 上的日期,我必须使用系统偏好设置. But when I start testing I get several errors related to the code signing Code Signing Error: Provisioning profile "iOS Team Provisioning Profile: xx.xx.xx" expired on 11. Dec 2020. I can understand that, cause the date is superior that the expire date of the provisioning profile, but normally when I change again the date to the current date that is inferior to the provisioning profile it have to work, but wasn't the case, this some staff I tried to do but no one solved my problems但是当我开始测试时,我收到了几个与代码签名相关的Code Signing Error: Provisioning profile "iOS Team Provisioning Profile: xx.xx.xx" expired on 11. Dec 2020.我可以理解,因为日期优于配置文件的到期日期,但通常当我再次将日期更改为低于配置文件的当前日期时,它必须工作,但事实并非如此,这是我尝试做的一些工作人员,但没有人解决我的问题

  • change the date to the current date and restart the machine.将日期更改为当前日期并重新启动机器。
  • delete all provisioning profile, delete the Apple Id in Xcode and add it again删除所有配置文件,删除 Xcode 中的 Apple Id 并重新添加
  • check all build settings if there is a problem on them but everything is ok检查所有构建设置是否有问题,但一切正常
  • delete all derived data close Xcode, restart it again, clean and build again the project删除所有派生数据关闭 Xcode,再次重新启动,清理并再次构建项目

here is list of the errors I'm getting这是我遇到的错误列表在此处输入图像描述

If somebody had the same error, the solution that It worked by luck and I don't understand why is that when I was pulling changes from the master branch of my project all errors disappeared.如果有人有同样的错误,它的解决方案很幸运,我不明白为什么当我从项目的主分支中提取更改时,所有错误都消失了。 I think it charged previous setups我认为它收取了以前的设置费用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM