macOS 终端登录失败

macOS terminal fails to login

安装 macOS Big Sur beta 后,我的终端运行异常。

如果我在 PC 重启后启动终端,我可以很好地启动终端,但是如果我关闭它并尝试重新启动,我会发现自己在空白终端上说“登录”。

我在 iTerm 和本机终端上遇到了同样的问题。

我也遇到了这个问题。

来自 Apple 开发者论坛的

This discussion 解释了问题和解决方案。

Found the trigger, it's an iTerm2 thing.

Disable Enable session restoration under Preferences > Advanced > Session, after that you shouldn't have a problem.

Raised an issue with iTerm's developers. Not sure if there's something here on the OS side as well.

我在 Mojave 上也有这个问题,在 iTerm 和 Terminal 上都是。解决方案是重新启动我的机器。