# ObjC.getInfo

Inspect the target process/session.

```js
ObjC.getInfo()
```

## Arguments

No arguments.

## Returns

Object {pid, processName, bundleId, sessionId, retainedObjects}. retainedObjects is the current session’s retained-reference count.

## Example

```js
console.log(ObjC.getInfo().processName); // "SpringBoard"
```

## Notes

Start with [Objective-C step by step](/doc/objc). Also available on app = RemoteObjC.forApp(bundleId) as app.getInfo(). Selecting or opening another app does not change the local ObjC target.

[All JavaScript APIs](https://mcp.applesauceos.com/doc/api.md) · [Automation playbook](https://mcp.applesauceos.com/doc/ai.md)
