Siguza / tbdump

Utility to create tbd's off dylibs
MIT License
77 stars 15 forks source link

File does not contain any LC_VERSION_MIN_* load command. #2

Open aaronn opened 5 years ago

aaronn commented 5 years ago

I'm not really familiar with jtool or tbd file generation but I found this project through a Stackoverflow answer where you help someone get .tbd files linked for PrivateFramework linking. I followed your instructions to extract from the dyld cache with jtool -e AvatarKit dyld_shared_cache_arm64 but when I run ./tbdump dyld_shared_cache_arm64.AvatarKit >AvatarKit.tbd I get this error: [!] Data format error while parsing dyld_shared_cache_arm64.AvatarKit: File does not contain any LC_VERSION_MIN_* load command. Any ideas?

Siguza commented 5 years ago

Could you upload/share the library in question?

danpashin commented 5 years ago

@Siguza Same issue with IOKit from iOS 12.1.1 IOKIt.zip

lmcd commented 4 years ago

I'm getting this error too

Torrekie commented 3 years ago

I found this thread talked about this problem, that LC_VERSION_MIN_* are no longer emitted when building machos for newer Darwin systems, they are superseded by LC_BUILD_VERSION.

Siguza commented 3 years ago

Sigh. Thing is, tbdump is broken on so many ends... I seriously thing efforts would be better spent trying to add dyld_shared_cache support on top of tpoechtrager/apple-libtapi.