Apple warns investors that iPhone sales are weak