Skip to content

Conversation

codeaholicguy
Copy link
Contributor

Problem

There was an async/await mismatch in the iOS device management code that was causing the application to fail when checking for go-ios installation and listing iOS devices.

Error:

spawnSync ios ENOENT

The issue occurred because: isGoIosInstalled() was incorrectly marked as async despite using synchronous execFileSync

Solution

Fixed the async/await pattern consistency:

Made isGoIosInstalled() synchronous. Removed async keyword and Promise<boolean> return type since it uses execFileSync() which is inherently synchronous

Impact

  • Fixes runtime errors when calling mobile_list_available_devices

Testing

Able to get available devices when calling mobile_list_available_devices.

npx @modelcontextprotocol/inspector node lib/index.js
Screenshot 2025-07-02 at 15 34 20

@codeaholicguy
Copy link
Contributor Author

The reported issue #118

@gmegidish
Copy link
Member

@codeaholicguy thanks for this pull request!! merged in, after a bit of time :) thanks for the patience. let's release a new version with this just one fix 🚀

@codeaholicguy
Copy link
Contributor Author

thank you @gmegidish

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.

2 participants