The issue is likely caused by enabling for install builds only in Xcode under -> Runner -> Build Phases -> Run Script. If you previously encountered a Command PhaseScriptException error, you should disable the "For install builds only" option in the Run Script. After making this change, run the code in Xcode again and check the detailed error message to catch the error as follows. I' m writing this since i have encountered the same issue and mine was about flutter fire.