React Native Build Commands Failed: PhaseScriptExecution ... (domain=NSPOSIXErrorDomain, code=2) React Native Build Commands Failed: PhaseScriptExecution ... (domain=NSPOSIXErrorDomain, code=2) ios ios

React Native Build Commands Failed: PhaseScriptExecution ... (domain=NSPOSIXErrorDomain, code=2)


For me port 8081 was in use :

lsof -n -i4TCP:8081


1.Go to File -> Project settings2.Click the Advanced button3.Select "Custom" and select "Relative to Workspace" in the pull down4.Change "Build/Products" to "build/Build/Products"5.click done, doneenter image description here


matomo