Skip to content

Mobile MCP: let AI agents drive your iOS and Android apps. MCP server for simulators, emulators and real devices. Works with Claude Code, Codex, Cursor and any MCP client.

fix(ios): detect go-ios installed via npm (bare semver version) (#355)

Ravi Jagga0a33e6eb0141
diff --git a/src/ios.ts b/src/ios.ts
index 774464e..382b6d9 100644
--- a/src/ios.ts
+++ b/src/ios.ts
@@ -248,7 +248,7 @@ export class IosManager {
try {
const output = execFileSync(getGoIosPath(), ["version"], { stdio: ["pipe", "pipe", "ignore"] }).toString();
const json: VersionCommandOutput = JSON.parse(output);
- return json.version !== undefined && (json.version.startsWith("v") || json.version === "local-build");
+ return json.version !== undefined && (/^v?\d+\.\d+\.\d+/.test(json.version) || json.version === "local-build");
} catch (error) {
return false;
}