nst / RuntimeBrowser

Objective-C Runtime Browser, for Mac OS X and iOS
3.55k stars 510 forks source link

Search within subdirectories for nested frameworks #23

Closed allenngn closed 7 years ago

allenngn commented 7 years ago

This commit is to make it so that the app also searches within subdirectories for any frameworks that may be nested within the top level framework. Documentation for NSFileManager contentsOfDirectoryAtPath:error: reads

This method performs a shallow search of the directory and therefore does not traverse symbolic links or return the contents of any subdirectories.

Thus, any frameworks that are inside another framework would not be found under the previous implementation.

One example would be the AVFAudio framework, which is located within AVFoundation.framework. Path:

/System/Library/Frameworks/AVFoundation.framework/Versions/A/Frameworks/AVFAudio.framework

I could not find the runtime headers for this class when I originally found this repo: https://github.com/nst/iOS-Runtime-Headers

nst commented 7 years ago

Thank you.

The next step is to make the HTTP headers retrieval work with inner frameworks.

I'll have a look when I have time.