Reports say that Apple has ended a decade-long effort to build an electric car, ending a project that some saw as potentially transformative for the automobile industry.