Commits (2)
......@@ -386,6 +386,11 @@ class Library(object):
for ignore in loader.ignores:
if ignore.match(ref):
return None
if ref.startswith('/System/Library/Frameworks/') or \
ref.startswith('/usr/lib/'):
# These files do not exist on-disk as of macOS 11. This is Apple
# magic and assumed to be a system library.
return None
search_path = loader._find_library(ref)
if os.path.exists(search_path):
return cls.from_path(os.path.realpath(search_path), parent=loader)
......