Skip to content

Conversation

@erisu
Copy link
Contributor

@erisu erisu commented Nov 18, 2025

Resolves #4
Resolves #5


This PR adds support for pair and unpair.

A successful results would look like this:

{
  status: 0,
  signal: null,
  output: [ null, <Buffer >, <Buffer > ],
  pid: 111,
  stdout: <Buffer >,
  stderr: <Buffer >
}

When pairing is successfully and the stdout was converted to a string, we would see the pair UUID.

Note: The string will contain a trailing newline \n.

Copy link
Contributor

@dpogue dpogue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it's worth adding { encoding: 'utf8' } as an option to spawnSync everywhere so we get strings back instead of Buffers... it's caused confusion before when it looks like you'll get a string but get a buffer instead

@erisu
Copy link
Contributor Author

erisu commented Nov 19, 2025

I wonder if it's worth adding { encoding: 'utf8' } as an option to spawnSync everywhere so we get strings back instead of Buffers... it's caused confusion before when it looks like you'll get a string but get a buffer instead

I think adding { encoding: 'utf8' } would be helpful so people don’t unexpectedly get Buffers.

After this PR, I’ll open a separate one that adds { encoding: 'utf8' } to all methods at once, so it will be easy to revert if needed.

@erisu erisu merged commit e72f987 into ios-control:master Nov 19, 2025
4 checks passed
@erisu erisu deleted the feat/pairing branch November 19, 2025 01:24
@erisu erisu added this to the 3.0.0 milestone Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support "simctl unpair" command Support "simctl pair" command

2 participants