Mac friends who have the Apple M1 chip may encounter some abnormal situations when installing the software. Below, Zuo Zuo sorted out several abnormal situations that may be encountered and solutions for application crashes. Hope to help the friends solve the problem.
Installation abnormal
Exception 1
提示 zsh: bad CPU type in executable:xxx
Reason: This is because Rosetta 2 is not installed on the computer.
Solution: Open the terminal, execute the following command, and install it to solve it.
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
Exception 2
Prompt zsh: no such file or directory: Volumes/xxxx/install
Reason: This is usually caused by installing Oh My Zsh but not updating the user configuration environment.
Solution: Open the terminal, execute the following command, exit the terminal after the execution is complete, and then re-run the terminal to make it take effect.
PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
Application crashes
If the application crashes, the following prompt appears:
1. Open the Finder-application, find the crashed application, right-click on the application icon, and click "show profile".
2. Check "Open with Rosetta"
If you don't have this option, just open the terminal and execute the following command to install it:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license