SourceKit infinite indexing loop with TCA on Xcode 26 #3781
Replies: 9 comments 3 replies
|
@Jaesung-Jung Given that this is related to a particular version of Xcode I don't know if we can consider it a TCA bug. We are open to changes to TCA that work around the Xcode bug, though please do file feedback with Apple if you can. |
@stephencelis Thank you for the response. Are you also able to reproduce this issue on your side? |
|
Hi @iwatakeshi, this does not seem to be related to this discussion and so I recommend you open a new discussion if you want to ask questions about it. Also, for now you you will need to turn of default main actor isolation in your new Xcode projects. |
|
Hi @mbrandonw, Thank you for your reply! I wanted to let you know that I’m also experiencing indexing issues, which is why I thought it could be related. I appreciate your input, and I’ll go ahead and open up a new issue to track and discuss on the learning project I'm working on. Thanks again! |
|
Hi @Jaesung-Jung, this doesn't seem like anything we can reasonably fix in the library, and instead a feedback should be filed with Apple. I am going to convert to a discussion for now, but please do share if you file a feedback and we will dupe it. |
|
@mbrandonw @stephencelis I've filed a report with Apple: FB20489299
If anyone finds a workaround please let me know, thanks. |
|
As an alternative to using Xcode, you can try vscode with the sweetpad extension. It works pretty well. |
|
this seems fixed in Xcode 26.1 RC 🥳
|

Uh oh!
There was an error while loading. Please reload this page.
Description
When adding The Composable Architecture to a fresh SwiftUI template project in Xcode 26 (iOS 26 SDK),
SourceKit enters an infinite indexing loop.
This issue does not occur on Xcode 16 with the same project and dependency versions,
so it seems to have been introduced with Xcode 26.
Checklist
mainbranch of this package.Expected behavior
The project should index successfully and allow normal code completion, navigation, and symbol search in Xcode.
Actual behavior
The project opens in Xcode 26, indexing never finishes.
Reproducing project
The project file and sourcekit log are attached.
(The attached log file was generated using the following command)
SOURCEKIT_LOGGING=3 /Applications/Xcode.app/Contents/MacOS/Xcode &> ~/Desktop/indexing.logIndexingLoop.zip
indexing.log
The Composable Architecture version information
1.22.2
Destination operating system
iOS 26
Xcode version information
Xcode 26
Swift Compiler version information
All reactions