Summary
After xcode-ide bridge sync succeeds and tools are proxied, XcodeGlob finds Swift files, but those returned paths are rejected by XcodeRead and RenderPreview with File not found in project structure.
This makes bridge-based preview/read workflows unusable even though connection is healthy.
Environment
- macOS: Darwin 25.3.0
- Xcode: 26.3 (17C529)
- xcodebuildmcp: 2.1.0
- Project config includes
xcode-ide and debug: true
Preconditions
Bridge can connect successfully:
xcode_tools_bridge_status initially: connected=false
xcode_tools_bridge_sync result:
connected: true
proxiedToolCount: 20
XcodeListWindows succeeds and returns:
tabIdentifier: windowtab1
- workspace path points to a local
.xcodeproj
Repro steps
- Find file via bridge proxy:
XcodeGlob({
"tabIdentifier":"windowtab1",
"path":"<project-root-group>",
"pattern":"**/MainTabView.swift"
})
Result includes a concrete path to that file in project-structure format.
- Try to read same file path returned by
XcodeGlob:
XcodeRead({
"tabIdentifier":"windowtab1",
"filePath":"<exact-path-returned-by-XcodeGlob>"
})
Observed error:
File not found in project structure: <exact-path-returned-by-XcodeGlob>
- Try to render preview from same path:
RenderPreview({
"tabIdentifier":"windowtab1",
"sourceFilePath":"<exact-path-returned-by-XcodeGlob>",
"previewDefinitionIndexInFile":0
})
Observed error:
File not found in project structure: <exact-path-returned-by-XcodeGlob>
- Confirm this is not caused by missing preview definitions:
- Search for
#Preview with XcodeGrep.
- Select a file that definitely contains
#Preview (e.g. SignInView.swift in one repro).
RenderPreview still fails with File not found in project structure using the path returned by XcodeGlob.
Expected behavior
Paths returned by XcodeGlob should be directly consumable by XcodeRead and RenderPreview in the same tab/workspace context.
Actual behavior
XcodeGlob returns paths that XcodeRead and RenderPreview reject as not found.
Notes
This is distinct from bridge connection issues: bridge sync/status/list windows all succeed.
Summary
After
xcode-idebridge sync succeeds and tools are proxied,XcodeGlobfinds Swift files, but those returned paths are rejected byXcodeReadandRenderPreviewwithFile not found in project structure.This makes bridge-based preview/read workflows unusable even though connection is healthy.
Environment
xcode-ideanddebug: truePreconditions
Bridge can connect successfully:
xcode_tools_bridge_statusinitially: connected=falsexcode_tools_bridge_syncresult:connected: trueproxiedToolCount: 20XcodeListWindowssucceeds and returns:tabIdentifier: windowtab1.xcodeprojRepro steps
Result includes a concrete path to that file in project-structure format.
XcodeGlob:Observed error:
File not found in project structure: <exact-path-returned-by-XcodeGlob>Observed error:
File not found in project structure: <exact-path-returned-by-XcodeGlob>#PreviewwithXcodeGrep.#Preview(e.g.SignInView.swiftin one repro).RenderPreviewstill fails withFile not found in project structureusing the path returned byXcodeGlob.Expected behavior
Paths returned by
XcodeGlobshould be directly consumable byXcodeReadandRenderPreviewin the same tab/workspace context.Actual behavior
XcodeGlobreturns paths thatXcodeReadandRenderPreviewreject as not found.Notes
This is distinct from bridge connection issues: bridge sync/status/list windows all succeed.