This is not an Apple problem, it's an industry and maybe even a societal problem. I don't even think it's possible to get a good job, get an A+ rating for every performance review ever, and expect to stay at that job for 5+ years. After 10 years, you are too expensive to keep around.
Lol, just left one job after 10 years, not because I was too expensive but because the new company had more resources to spend and could offer me significantly more. The average seniority at the new company for IT workers is 17 years and not a month goes by that our Office of ~700 people doesn't have an announcement for someone celebrating their 25 or 30 year anniversary. You just need to develop valuable skills, expertise, and a proven track record and there WILL be someone willing to hire you. Any time I've gone looking for top tier talent for a specific area of expertise the number of qualified respondents has been very low because the majority of people with the applicable skills are generally already gainfully employed, the unemployment rate for the last few IT focused surveys I've seen results from were under 3% which is an incredibly tight market. If you're IT, not entry level, and having trouble finding employment it's either something with your local market (and you're not willing to relocate) or you've done something very wrong with your career.