Skip to content

Optimize iOS device detection by prioritizing idb availability check - #2843

Open
EmmaYuan1015 wants to merge 4 commits into
masterfrom
idb-availability-check-priority
Open

Optimize iOS device detection by prioritizing idb availability check#2843
EmmaYuan1015 wants to merge 4 commits into
masterfrom
idb-availability-check-priority

Conversation

@EmmaYuan1015

Copy link
Copy Markdown
Contributor

No description provided.

EmmaYuan1015 and others added 2 commits July 10, 2026 09:32
…check

- Move idb availability check before Xcode detection to reduce unnecessary process calls
- Refactor control flow: prioritize idb (CPU-efficient) over xcrun
- Improve code clarity with explicit comments for each fallback path
- Remove resolved TODO comment

This optimization reduces device list refresh latency on macOS by avoiding
unnecessary Xcode environment detection when idb is available.
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@EmmaYuan1015

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

@EmmaYuan1015
EmmaYuan1015 marked this pull request as ready for review August 6, 2026 05:42
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Improve iOS device detection performance: prioritize idb over xcrun

1 participant