It's a self-repairing problem. Eventually, the stores will all close and there won't be any theft because there won't be anything there to thieve.
Of course, when (not if) the stores all close and leave the city with no place to buy food or pharmaceuticals, the usual suspects will kvetch at the evil, capitalist store owners, not at the thieves who drove the stores away.
The very same people kvetching probably pushed policies
enabling the thieves in the first place.
I remember when Sears - then still very profitable - closed one of its stores in Chicago because of theft and vandalism - and of course no less than Jesse Jackson himself went on a tear and asked that the city FORCE Sears to keep it open. (His efforts failed.)
Grocery theft went WAY down after grocery chains (some with stores burned out during riots) closed or stopped building additional stores in certain areas, leading people like Michell Obama to lament "Food Deserts" that weren't "serving their communities" or some such.
And just in the past year or so, a number of drug store chains closed stores in areas where shoplifting was "decriminalized" and the police stopped responding to calls. And of course, activists decried the creation of "pharmacy deserts."