Apple Inc. Chief Executive Officer Tim Cook opened an expansive new store in central Shanghai Thursday, signaling his company’s commitment to China as a market and production base.