Skip to content

iOSOnMac does not work out of the box: Child exited with status 5Β #9

@rainbowcardiod

Description

@rainbowcardiod

./runner main does all the steps but fails with

[*] Sending SIGCONT to continue child
[*] Child exited with status 5

However, I am able to run the main program with a manual trick: after the program has been spawned in paused mode, keep runner paused (using a getc() after the posix_spawn), and do the following with lldb:

  1. attach to the target program (main)
  2. break set -n xpc_copy_entitlements_for_self, continue and hit the breakpoint
  3. get the address of my_xpc_copy_entitlements_for_self
  4. re write $pc 0x100dce000 -- where the address is from step 2
  5. continue and detach

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