"craving a food means your body needs something that food can offer" now what the fuck does my body need with an ice cream
it makes your brain happy! your body could use some joy too
no everyone shut up and listen. truths were said
in all seriousness, if you're craving ice cream, it's likely that your body needs fat and carbs. If ice cream isn't an option for whatever reason, you can try to feed yourself something else with a significant amount of fat and/or carbs. You may also be dehydrated if you're craving sweets.
That said, sometimes your body and brain do genuinely just need a pick me up.
The more frequently you practice intuitive eating like this, the better you'll get at figuring out what it is that your body is asking for.
Also, a great trick is to take a look at what you're craving, note the nutritional contents (fat, carbs, protein, plant matter/fiber) and try and figure out what else sounds tasty for your particular craving. This can give you more data points to go off of. For instance, if you're craving ice cream, but a sweet roll sounds just as good, it's probably carbs your body is asking you for. That said, if you're craving ice cream and a sweet roll doesn't sound good at all BUT a bagel with strawberry cream cheese or avocado toast DOES sound good, you know it's fat you're needing.
If all you're craving is ice cream and nothing else sounds worth the effort, you may just need a low effort mood boost, which is also totally valid! This can also help you even if you can't have ice cream, because now that you know what your body actually wants, you know there are more ways to fulfill that order than the way it asked you to!