Closed santalvarez closed 1 year ago
DyldExtractor does not support x86_64 caches, but the error that is shown should have not happened. If possible, can you send me a file with the first 512 bytes of the main cache, /System/Library/dyld/dyld_shared_cache_x86_64
.
You can use the following command, dd count=1 if=INPUT_FILE of=OUTPUT_FILE
.
Yeah, here you go dyld_shared_cache_x86_64.zip
Okay, I added a small check with 934b17d. As for x86_64 support, DyldExtractorC will support it, but development is going really slow unfortunately.
Nice, thank you. I tried it and I am getting this error for every lib, even in arm64e.
Processed: libsystem_info.dylib
----- libsystem_info.dylib -----
12:19:02:511 [ ERROR ] dyldex_all:184 : 'NoneType' object has no attribute 'header'
Traceback (most recent call last):
File "/usr/local/bin/dyldex_all", line 159, in _extractImage
linkedit_optimizer.optimizeLinkedit(extractionCtx)
File "/usr/local/lib/python3.9/site-packages/DyldExtractor/converter/linkedit_optimizer.py", line 600, in optimizeLinkedit
optimizer.copyLocalSymbols(newLinkedit)
File "/usr/local/lib/python3.9/site-packages/DyldExtractor/converter/linkedit_optimizer.py", line 270, in copyLocalSymbols
if symbolsCache.header.localSymbolsOffset == 0:
AttributeError: 'NoneType' object has no attribute 'header'
--------------------
Hmm I probably should have done more testing, can you send me a download link for your cache files so I can look deeper into the issue?
Also seeing this for an x86_64h cache
If possible can you send me your cache files? It would very helpful.
Do you have an email I can reach you on?
Yep, haow6449@gmail.com
I added another check with 7a559b60a141323da11ce6d94e1ab1445b0d1a17 and that seems to fix this issue, but x86_64h still fails in ObjC Fixer.
Hi, Im on macOS 12 (Monterey) and I am getting an error when trying to extract the cache.
The file shown in the error does indeed not exist, does this mean DyldExtractor doesn't work in macOS 12?