ZSH Killed my executable file in mac m1 while running the iOS project using script [closed]

The error message you have does not mean that zsh "killed your executable file" (which doesn't make sense), nor that zsh killed the running program (i.e. process).

Instead it means that the running process (the name of which is usually given right after the "zsh: killed" quote you list) received a KILL signal from the operating system.

You need to look at the processes you have instructed zsh to run in order to figure out why it received the KILL signal. Usually this comes from doing things such as for example try to start a program without a valid code signature, the out-of-memory handler in the operating system deciding that the process must be terminated, or that you specifically have some other process setup to actually terminate this particular process.