Xcode编译遇到的的崩溃..

493 阅读1分钟

遇到下面的崩溃可以尝试看看证书设置是否正确!!!

今天运行项目的时候报出以下问题,解决了一个又报一个

例如 IDEPreferLogStreaming 可以在设置里面修改.但是还是有问题

error: attach by pid '2707' failed -- attach failed (Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries, when the attach failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)

error: attach by pid '2766' failed -- attach failed (Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries, when the attach failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)

Logging Error: Failed to initialize logging system due to time out. Log messages may be missing. If this issue persists, try setting IDEPreferLogStreaming=YES in the active scheme actions environment variables.

最后查看提交记录.发现有同事修改了证书... 我尝试恢复了一下可以运行😂... 

问题查找步骤

1.网上搜索解决方案.无法解决

2. 切换提交节点运行项目查看是否正常

3.找到有问题的节点查看提交内容

4.恢复有问题的代码尝试运行...

但是具体这个问题是怎么爆出来的为什么与证书有关系就不太理解... 又懂得可以解释一下...