First launch on the whole network: (Solution) After MAC OS Xcode sets up the sandbox (Enable App Sandbox) for the application, the operation reports the error Illegal instruction: 4

  • 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.

Guess you like

Origin blog.csdn.net/quantum7/article/details/123689562