There have been many threads on this. I live and hike in a desert that can see summertime temperatures above 120F, so I live with this issue for about 6 months out of the year.
First off, what do you need to accomplish with your shirt?
Is it sun protection against UV rays and sensitive skin? Then a nylon shirt with high SPF rating would be in order.
Do you want to try and stay as cool as possible? Then a mesh shirt with a broad weave may work best.
Do you want to minimize evaporation, where water supply is an issue? Then a wicking base in not ideal as it promotes evaporation and a cotton, or cotton/poly blend will not dry as fast and will promote less evaporation (slower).
What is the temperature range you will be hiking in? How cold will it get?
This is what I normally use…
If I already have a good tan and water supply is not a problem, I wear no shirt at all, or I wear a Rail Riders EcoMesh T-shirt that is extremely well ventilated.
If I hike from around sea level and will end up over 8,000' then I normally wear a long sleeve Rail Riders EcoMesh or Adventure Shirt, but might stick with the EcoMesh T.
If the high temperature is under 90F and I expect temperatures around freezing at night, then I usually wear a Mountain Hardwear Cliffer long sleeve T, 15% merino, 85% poly.
By usually, I mean when I think about it. Often I just grab something out of my drawer. Might be a Nike DriFit T-shirt, REI OXT T-shirt, or a cheap cotton T shirt. I really don't give it that much thought. By June I usually have a good sun tan and prefer T-shirts. Unless I need something for colder weather, there is no need for me to fret or clog up my brain worrying about shirts or shorts.