Apple previews new iPhone software, switches to Mac chips