8000 Fix: Fail to check go-ios installation by codeaholicguy · Pull Request #132 · mobile-next/mobile-mcp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix: Fail to check go-ios installation #132

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

codeaholicguy
Copy link

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
Author

The reported issue #118

5967
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.

1 participant
0