I meant to stop deer from eating foliage and for that you need to use the right sprays. I’ve never been able to protect fruit with spray. One year a couple decades ago I made a concoction with habanero seeds to keep squirrels from my peaches. It should have burned their tongues off, but it’s pretty hard to keep a starving animal from food.
Nets are great for stopping birds, but half the time squirrels will tear right through them. I baffle trees for them and coons.