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?
BuildToolPlugin
? – ManeatingXcode 15.1 Beta 3
, though here it actually breaks the build process with aBuild failed
and has a more detailed message:Internal inconsistency error: received multiple target ended messages for target ID '1' or received target ended message but did not receive corresponding target started message, while retrieving parent activity in taskStarted message.
andInternal inconsistency error: received multiple task ended messages for task ID '4' or received task ended message but did not receive corresponding task started message.
– WaggishSwiftGenPlugin
.plugin
as well – WaggishSwiftGenPlugin
. – Batchelorkillall XCBBuildService
. This generally helps, but carries a big overhead and maybe even more problems – Altostratus