Mac friends with an Apple M1 chip may encounter some abnormal situations when installing the software. The following editor sorts out several abnormal situations that may be encountered and the solutions to the application crashes. Hope to help you guys solve the problem.
Installation exception
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 the problem.
- /usr/sbin/softwareupdate --install-rosetta --agree-to-license
exception 2
Prompt zsh: no such file or directory: Volumes/xxxx/installation
Cause: 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 execution, and then re-run the terminal to make it take effect.
- PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
App crashes when running
If the application crashes , the following prompt will appear:
1. Open the Finder - Applications, find the crashing application, right-click on the application icon, and then click "Show Profile".
2. Check "Open with Rosetta"
If there is no such option, open the terminal and execute the following command to install it:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license