나의 발자취

iOS Command PhaseScriptExecution failed with a nonzero exit code 문제 본문

앱 개발/iOS

iOS Command PhaseScriptExecution failed with a nonzero exit code 문제

달모드 2021. 7. 4. 02:25

자세히 보면 

bash: /Users/lia/Profile/node_modules/react-native/scripts/generate-specs.sh: Permission denied

Command PhaseScriptExecution failed with a nonzero exit code

접근권한이 없어서 생긴 에러다.

 

해결방법

터미널에서 해당 파일의 경로로 이동한다.

그리고

chmod +x 해당파일

을 입력한다. 아래와 같이.

그리고 다시 XCode에서 프로젝트를 빌드한다.

 

그런데도 계속 에러가 뜬다면?

XCode > File > Workspace settings 에 가서 Build System을 Legacy Build System으로 변경한다.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Comments