Oil shares, Apple boost US stocks