As Apple approaches its golden jubilee, its remarkable ascent to a $4 trillion valuation stems from a series of innovative products that redefined tech. Yet, the journey wasn’t without its missteps.