Xcode encounters the following error at compile time

Command PhaseScriptExecution failed with a nonzero exit.

Command PhaseScriptExecution failed with a nonzero exit Error Command PhaseScriptExecution failed with a nonzero exit error Command PhaseScriptExecution failed with a nonzero exit

1. Find the red background in the image above and focus on line 2: the path after it, Pictured above is/Users/(here I omitted)/SDK/iOS_SDK_V1. 7.5 (20201114)/AUTELSdkDemo/Pods/Target Support Files/Pods-AUTELSdkDemo/Pods-AUTELSdkDemo-frameworks.sh : Permission denied Pods-autelsdkdemo-frameworks. Sh: Pods-autelsdkdemo-frameworks. Sh: pods-autelsdkdemo / iOS_SDK_V1. 7.5 (20201114)/AUTELSdkDemo/Pods/Target Support Files/Pods – AUTELSdkDemo/this directory), Then execute chmod +x Pods-autelsdkdemo -frameworks. Sh (add execution permission, search for the meaning of chmod by yourself).

2. Open the terminal

3. Go to the pods-autelsdkdemo-frameworks. Sh directory in Step 1. ` ` CD/Users/(here I omitted)/SDK/iOS_SDK_V1. 7.5 (20201114)/AUTELSdkDemo/Pods/Target Support Files/ PODs-autelsdkdemo /, which depends on the path of your own code, of course you may run into a problem here, that is, the Pods/Target Support Files above have a space, you can not directly CD into the directory of the example, You can CD to /Users/ /SDK/ iOS_sdk_V1.7.5 (20201114)/AUTELSdkDemo/Pods/ and then go to CD Target* to… CD to Pods-autelsdkdemo /, execute chmod +x Pods-autelsdkdemo -frameworks.

4. At this point the compilation problem should be solved 👍🏻.