aaronst / macholibre

Mach-O & Universal Binary Parser
Apache License 2.0
143 stars 32 forks source link

KeyError: 'dylib' #34

Open vadimszzz opened 2 years ago

vadimszzz commented 2 years ago
Traceback (most recent call last):
  File "/Users/x/Downloads/Projects/ios-apps-research-2021/exynex/cli/analyze.py", line 149, in run
    app_main_executable_props = macholibre.parse(f"{app_dir}/{app_executable}")
  File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/site-packages/macholibre/__init__.py", line 45, in parse
    return parser.parse(certs=certs)
  File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/site-packages/macholibre/parser.py", line 1695, in parse
    self.parse_file()
  File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/site-packages/macholibre/parser.py", line 1685, in parse_file
    self.parse_macho(0, self.__output['size'])
  File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/site-packages/macholibre/parser.py", line 1631, in parse_macho
    self.parse_imports(offset, size, lc_symtab,
  File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/site-packages/macholibre/parser.py", line 1021, in parse_imports
    dylib = sym['dylib']
KeyError: 'dylib'