Is there a tool/script which can help me iterate over (or just count) all the selectors in a objective-c binary. I want to statically analyze objective c binaries and get that metric. I tried otool -tV but all it dumps is hex-data which I'm unable to parse. Some people suggest using lldb but I'm unsure how to do that.
Counting the number of selectors in an objective-c binary
493 Views Asked by A. K. At
2
There are 2 best solutions below
Related Questions in OBJECTIVE-C
- How to control the volume of an iPhone programmatically in objective-c
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- How to set value the descriptor of iOS BLE in Objective-C?
- Unexpected #selector() Behavior in Swift-Objective-C Interop?
- In what context can we use an unqualified #selector() expression in Swift?
- AVPictureInPictureController crashes during initialization
- How to use pow() in Objective-C?
- How to change the image on the MGSwipeButton in MGSwipeTableCell
- Using sort descriptors in Outline View
- Why is my Swift function not printing from inside the dataTask closure?
- Using UICollectionViewCell with IBOutlet
- Undefined symbol: _OBJC_CLASS_$_ only on simulator
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Behavior of __block modifier in objc
- Inserting subview into view where I've added subviews and sublayers
Related Questions in SELECTOR
- In what context can we use an unqualified #selector() expression in Swift?
- How can I make sure that my Selector does not overlap my text-area box when hover ? I would like for the selector to smoothly push down the text-area
- How can I display the lowest price for variations on Woocommerce product page?
- Please solve a problem with selectorlib, get this message but can not uderstand it
- How to get an element ful lxpath in WebdriverIO?
- Trouble resolving user names from a separate state in Angular project with ngrx
- CSS Using wildcard * all elements within a :not()
- How can I make my wesbcraper type something and select from a dropdown
- CSS selector ~ targeting a class while hovering another class
- Customize browser certificate selector window
- Testcafe: How is a Selector created to select a timestamp outside of HTML tag? <strong>Timestamp:</strong> 12/13/2023 10:55 A.M. EST
- Uncaught Type Error: allButtons.remove() is not a function?
- How to query contents between headings?
- jQuery click both event.target and additional selector
- Multiple audio elements versus document.querySelector('audio');
Related Questions in LLDB
- Build LLVM, Clang and Libfuzzer
- Why breakpoint location is +4 bytes to the function address?
- Debugger display rust enums
- Why does my reference type object have 3 strong references right after initialization?
- Is there a JDK for Mac OS that you can debug with LLDB?
- LLDB show pointer as an array in the GUI mode
- Bevy loading assets relative to debug binary instead of project root
- Window appears and blocks debugging (lldb vscode windows) but works fine on command line apps
- Is there a way to perform home path expansion for target.source-map in .lldbinit?
- How do I place a breakpoint at the start of an application in Xcode lldb?
- lldb Immediate exit with status = -1 lost connection
- Can't get LLDB to run my executable correctly
- LLDB exited unexpectedly when debug in vscode with CMake Tools
- How do I debug a rails application on my macbook using lldb?
- Cannot configure VSCode to compile C code on MacOS
Related Questions in OBJECTIVE-C++
- what languages in xcode can i bridge to unity for macOS?
- Detect Finger nail and Overlay color - OpenCV, Vision, AR iOS Swift
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Window "yanks" when moving
- Locating loaded dylibs
- Is there a way to take a screen shot in macOS programmatically?
- Basic ImGui program doesn't render, leaks memory and crashes
- How to Embed Cloudflare Client Certificate and Private Key in a React Native iOS App?
- AppKit NSTextField and AutoLayout : how to set programmatically a specific width?
- Objective-C++ undefined symbols when linking C++ constructors
- transitioning an objective c++ codebase to modules
- Tracking cursor location during drag events?
- Memory management issue while Call Obj-C in Swift
- Bad Access returning NSObject
- Unknown type name 'namespace' after install cocoapod
Related Questions in OTOOL
- How can I make objdump display the size of the operand the assembly instruction is acting upon?
- Do the disassemblers otool and objdump output the exact machine instructions contained in an executable?
- C++ Dependencies on MacOS
- otool is referencing an old version of libffi
- Why does macOS kill static executables created by clang?
- Couldn't locate otool-classic while running ipatool
- How to find out in source code the function names the Xcode's otool outputs for you?
- How to detect which particular public iOS framework uses a particular private iOS framework?
- Why do dynamic libraries on macOS have an id?
- how to get Xcode to set LC_RPATH (so that @rpath loads will work)?
- Changing dylib library path with install_name_tool -id, nothing changes
- dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicuuc.68.dylib Reason: image not found
- Using otool -L shows only the library name and not the path it's linked to
- Insecure APIs (_memcpy) can still be found in the iOS Application
- How to print all symbols that a mach-o binary imports from dylibs?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can print all of the selectors like this:
If you want to count them, grep out the two header lines and pipe the rest into wc: