Contents

LaunchCodeRequirement

A lightweight code requirement that you use to evaluate the executable for a launching process.

Declaration

struct LaunchCodeRequirement

Overview

If you set a LaunchCodeRequirement object for a launching process and the executable doesn’t satisfy the requirement, the operating system doesn’t run the process and creates a crash report instead. LaunchCodeRequirement objects can only be built using constraints that conform to the LaunchConstraint protocol. Note that LaunchCodeRequirement are applied to processes. If a launch requests execution of ‘#!’ script, the launch constraint will be applied to the interpreter. For example a script with the following ‘#!’ will apply a launch constraint to bash.

#! /bin/bash

if the ‘#!’ is instead:

 #! /usr/bin/env python

Then the launch constraint is applied to env.

Topics

Initializers

Instance Methods

Type Methods

See Also

Checking code requirements for launching processes