Skip to content

Add support for iOS Simulator (local device) via --local flag #794

@cpholguera

Description

@cpholguera

Is your feature request related to a problem? Please describe.

objection has no way to attach to apps running in an iOS Simulator. The Simulator is exposed by Frida as a local device (no USB and no frida-server are required) but objection always defaults to device_type='usb'. Running objection -n MASTestApp start against a Simulator process fails with Unable to find a device, even though Frida itself can attach without issue (frida -n MASTestApp works out of the box).

Describe the solution you'd like

A top-level --local / -L flag that tells objection to target the Frida local device instead of a USB or network device:

objection -L -n MASTestApp start

This mirrors the existing --network / -N flag and requires no frida-server on the Simulator or on the host.

Describe alternatives you've considered

Using --serial with the simulator device id: Frida doesn't expose simulator devices that way; they appear only as the single local device.

Additional context

Tested with Frida 17.5.1 and the MASTestApp iOS Simulator target on macOS. frida-ps shows simulator processes alongside native macOS ones when no USB device is connected. The fix is small: a new use_local() connection mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions