Part of the challenge with managing energy and motivation in programming is that sometimes, you can be on a roll getting things done, and suddenly your tools or environment just break spectacularly and derail you.

Like if you’re a carpenter, in the middle of building a table, and all of a sudden the hammer disappears from your hand and someone’s like “There’s no table, what are you talking about” and it’s still RIGHT THERE and what the heck happened to the hammer?!

That was my last 2 hours. 🤣

And the solution was that you didn’t close the box of nails over there on the shelf from yesterday. And you’re like BUT WHY DID THAT MAKE THE HAMMER DISAPPEAR AND THE TABLE’S ENTIRE EXISTENCE GET DENIED AND WHY DID IT WORK FOR HALF OF THIS MORNING and there’s just no satisfying answer that you will ever get
That's programming.

Anyway if you ever get a wall of Xcode "Missing package product" errors, and no amount of cleaning/deleting/refreshing anything from the blog posts and AI agents actually fixes the problem…

It might be that one of those package’s Package.swift files got deleted.

And, of course, the one that got deleted was not mentioned in any of the error messages.

Nor was it the one being edited this morning when the errors suddenly started to appear.

@marcoarment Nothing like getting up on Monday, excited and inspired to get to work and the gods have simply decided it is not your day. Everything you try to do is harder than it should be and actually you are now further behind then when you started. The world would have been a better place if you simply stayed in bed. And it is not even lunch time.
@marcoarment This missing file is not visible in version tracking as a deletion?
@marcoarment … it’s times like these I’m reminded why sometimes I just want to move to a quiet house in the country and grow plants :D
@marcoarment running „xcodebuild -resolvePackageDependencies“ gives you much better error messages.
@marcoarment curious if you tried asking Claude to identify the problem.

@kevindente I sure did.

It was not helpful in this case.

@marcoarment and of course you can't tell which one