BundleUtilities: fixup_bundle broken on macOS 11 (Big Sur)
With macOS 11 Apple decided to merge most of the system libraries in /usr/lib
into the global shared linker cache. As a result those libraries are no longer available as physical files.
Quoting early release notes for Big Sur:
New in macOS Big Sur 11 beta, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache.
This breaks fixup_bundle
in different places - for example trying to run otool
on a system library will fail with 'no such file or directory'.