Apple’s results beat expectations on Thursday, thanks to better-than-expected showing the tech giant’s resilience in a…