Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internal inconsistency error (didStartTask)

Sometimes, about 2 times out of 10, when I run my application through Xcode, I get this error:

Internal inconsistency error (didStartTask): targetID (174) not found in _activeTargets.
Internal inconsistency error (didEndTask): '12' missing from _activeTasks.

This error is reproduced using Xcode 14.x, 15.x versions.

This error can be fixed by cleaning up the project and rebuilding it. I found thread on forums.swift.org, but it has no solution.

Judging by the thread, the problem may be in SPM and incorrect connection of dependencies

Anyone have a solution?

like image 646
BarredEwe Avatar asked Sep 06 '25 06:09

BarredEwe


1 Answers

I am not at all sure if this will help, but I had a similar message today a bunch of times and found this question, then tried Product -> Clean Build Folder and that cleared it up for the rest of the day. Seems like it had to do with something I changed on an observable value and something didn't get rebuilt fully.

like image 73
nroose Avatar answered Sep 07 '25 21:09

nroose