For the More Curious: Runtime Environment Variables

Earlier you saw several environment variables that could be set to achieve different results. There are a number of environment variables you can set. Here’s an interesting subset, and check out the dyld manpage for the complete list. When a list of things is mentioned, it is a colon-separated list of those objects.

The first set of environment variables control where the dynamic linker finds libraries and frameworks when a process is first loaded.

DYLD_FRAMEWORK_PATH

A list of directories that contain frameworks. The dynamic linker searches these directories first.

DYLD_FALLBACK_FRAMEWORK_PATH

A list of directories that contain frameworks. This is used as the default location for frameworks. ...

Get Advanced Mac OS X Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.