- Confirm that it is caused by sandbox
Before the sandbox is enabled, it runs normally; after the sandbox is enabled, an error is reported. Repeated experiments are the same. So it is concluded that the sandbox is caused. How to start the sandbox:
Xcode opens the sandbox to the application - Liu Kunpeng's blog - CSDN Blog
- Error content
Depending on the directory and environment, there are two types of errors:
87550 Illegal instruction
zsh: illegal hardware instruction
- Solution
I have searched the Internet for a long time, but have no idea. Later, with the idea of trying, I found a solution, as shown in the figure:
That is, change Code Signing Inject Base Entitlements from Yes to No.
At this point, the check signature of the application still exists.