runtimectl is a command-line utility for examining Objective-C segments in dyld_shared_cache images. It can generate declarations for the classes, categories and protocols. While also providing functionality to create dumps with these declarations for macOS & iOS.
Usage: runtimectl [options]
Options:
-h, --help Show this help message
--dump Commands involving the dyld_shared_cache
-l List all images in the dyld_shared_cache (-o is ignored)
-o <dir> Dumps dyld_shared_cache image headers to a specified directory (-l is ignored)
-f <image> Commands involving dyld images
-l List all available classes in the image (-c is ignored)
-o <dir> Dumps image headers to a specified directory (-l and -c is ignored)
-c <class> Dumps specified class to stdout (-l and -o is ignored)
List available images from the dyld_shared_cache
runtimectl --dump -l
Dump all headers from the dyld_shared_cache into /tmp/libraries
runtimectl --dump -o /tmp/libraries
List all classes in GameKit.framework
runtimectl -f /System/Library/Frameworks/GameKit.framework/Versions/A/GameKit -l
Dump headers from a specific dylib into /tmp/GameKit
runtimectl -f /System/Library/Frameworks/GameKit.framework/Versions/A/GameKit -o /tmp/GameKit
Print the GKImageLoader class from GameKit.framework
runtimectl -f /System/Library/Frameworks/GameKit.framework/Versions/A/GameKit -c GKImageLoader
Project is licensed under the MIT license. You can see the full details of the license here.