LaunchCodeRequirement
A lightweight code requirement that you use to evaluate the executable for a launching process.
Declaration
struct LaunchCodeRequirementOverview
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/bashif the ‘#!’ is instead:
#! /usr/bin/env pythonThen the launch constraint is applied to env.