Apple Inc. said it would provide consumers world-wide with a free battery replacement for iPhone 6s devices that unexpectedly shut down.

The announcement Sunday came less than a week after a Chinese consumer-protection group said it received reports of iPhone 6s devices spontaneously shutting down though half their battery life remained. It is the second time in the past three years the company has offered a battery-replacement program for iPhones.

The...