code: def remove_run_script(self, script, target_name=None):
          
          for target in self.objects.get_targets(target_name):
              for build_phase_id in target.buildPhases:
                  build_phase = self.objects[build_phase_id]
                  if not isinstance(build_phase, PBXShellScriptBuildPhase):
                      continue
  
                  if build_phase.shellScript == script:
                      del self.objects[build_phase_id]
                      target.remove_build_phase(build_phase)
docs: Removes the given script string from the given target
          :param script: The script string to be removed from the target
          :param target_name: Target name or list of target names to remove the run script from or None for every target
          :return: