Apple Inc. is preparing one of the most dramatic software overhauls in the company’s history, aiming to transform the interface of the iPhone, iPad, and Mac for a new generation of users.