Chiquita Brands International has swung to a first-half loss as a drop in sales and higher sourcing costs hit profits.