-
Notifications
You must be signed in to change notification settings - Fork 2
Ios Sim Fixes #221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Ios Sim Fixes #221
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| build/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # ADE iOS Simulator private helpers | ||
|
|
||
| ADE uses these helpers as the primary low-latency path for local iOS Simulator | ||
| streaming and touch input on macOS. | ||
|
|
||
| - `sim-capture.swift` attaches to CoreSimulator's private IOSurface display | ||
| descriptors, JPEG-encodes framebuffer updates, and writes | ||
| `[u32 big-endian length][jpeg bytes]` frames to stdout. It accepts `--fps` | ||
| and `--quality` so ADE can cap renderer load without changing callers. | ||
| - `sim-input.m` opens SimulatorKit's private Indigo HID client and accepts | ||
| newline-delimited JSON input commands on stdin. Touch input is sent through | ||
| Indigo; unsupported keyboard/text operations are reported as typed failures so | ||
| ADE can fall back to idb for that method. | ||
| - `build.sh` compiles both helpers lazily into `build/xcode-<version>-<hash>/`. | ||
|
|
||
| These helpers intentionally use Apple private frameworks. They are local | ||
| developer tooling, not app runtime code. Keep the supported Xcode major-version | ||
| set explicit in `iosSimulatorService.ts`, and expand it only after testing the | ||
| helpers against that Xcode. `iosurface-indigo` is currently gated off in | ||
| packaged ADE builds until the helper signing/notarization story is cleared; set | ||
| `ADE_IOS_SURFACE_ALLOW_PACKAGED=1` only for explicit packaging experiments. | ||
|
|
||
| To rebuild manually: | ||
|
|
||
| ```sh | ||
| cd apps/desktop/native/ios-sim-helpers | ||
| bash ./build.sh --print-json --smoke | ||
| ``` | ||
|
|
||
| Known sensitivities: | ||
|
|
||
| - Full Xcode is required. Command Line Tools alone do not include | ||
| `SimulatorKit.framework`. | ||
| - The helper checks both the iPhoneSimulator platform-private framework path | ||
| and the newer selected-Xcode developer-private framework path. | ||
| - Xcode 17.x and 26.x are the currently enabled major versions in ADE. | ||
| - Xcode updates may rename private classes/selectors or change Indigo packet | ||
| layouts. | ||
| - Multiple booted simulators are supported only when ADE passes a UDID. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.