Coding Assistant autocomplete breaks with many Swift packages

I’m seeing a reproducible issue in both Xcode 26 and Xcode 27 where Coding Assistant appears to stop autocompleting when a project contains a larger number of Swift Package dependencies.

Symptoms:

  • Autocomplete suggestions from Coding Assistant stop appearing.
  • File targeting with @ stops working.
  • The issue typically appears shortly after opening the project
  • If I start a brand-new chat immediately after opening the project, Coding Assistant sometimes works briefly before failing
  • Reducing or removing Swift Package dependencies fixes the issue

I’ve created a sample project that reproduces the problem and have also filed Feedback Assistant report: FB23341243

The issue seems related to package count or project complexity rather than any specific package, although I haven’t yet identified the exact threshold that triggers it.

Has anyone else run into this or has anyone found a workaround?

Coding Assistant autocomplete breaks with many Swift packages
 
 
Q