symbolAddress(imageName:symbolName:)
Looks up a symbol’s address by name.
Declaration
final func symbolAddress(imageName: String?, symbolName: String) -> UInt64Parameters
- imageName:
The path of the Mach-O binary image, such as
/usr/lib/libSystem.B.dylib, that contains the symbol. Usenilto search for the symbol in all images loaded in the process space. - symbolName:
The name of the symbol to find.
Return Value
The symbol’s address, or 0 if searching the image didn’t find the symbol.