Xcode compiler error Summary (1)

Error problem

Xcode project compilation error occurs in the following three cases:

1.Command PhaseScriptExecution failed with a nonzero exit code;

2.Shell Script Invocation Error

3.Permission denied

As shown in the picture:

why

The file does not have permissions, so you need to add them

The solution

1. Check whether File >Workspace Settings >Build System is set to Legacy Bulid System

2. Add execution permission to a single file.

Chmod +x (file path)Copy the code

Add the highest permission to a file or project (chmod -r 777 in Linux indicates adding the highest permission to a file or project, that is, read, write, or execute) note: This method has security risks. After running this command, all the permissions on the file or project are granted to all users in the system

Chmod -R 777 (File/project path)Copy the code