Menu
Due to SIP, one can no longer set any environment variable which starts with DYLD Yes and no. SIP protects Apple binaries from DYLD; Microsoft's Excel is not protected by SIP and DYLDINSERTLIBRARIES works as expected. How do we know this?
Support Communities / Mac OS & System Software / macOS Sierra Announcement: Upgrade to macOS Mojave With features like Dark Mode, Stacks, and four new built-in apps, macOS Mojave helps you get more out of every click.
There's a library, libGMalloc.dylib that can be used to monitor debug allocations of applications. From the terminal, execute the following: - DYLDINSERTLIBRARIES=/usr/lib/libgmalloc.dylib /Applications/Microsoft Excel.app/Contents/MacOS/Microsoft Excel You'll see that Excel is launched and works, though a little slower than usual, due to the overhead of the inserted library that's busy monitoring all memory allocations. In addition, using Activity Monitor and looking at the Excel process's open files, we can clearly see the libGMalloc.dylib that has been inserted into its process. I suggest using DYLDINSERTLIBRARIES instead of DYLDLIBRARYPATH and referencing the Coolprop library from the command line, as demonstrated here.