BEIJING—When Apple Inc. launched the iPhone XR in October, Tim Cook singled out the device to his more than a million followers on Weibo, China’s equivalent of Twitter. “Wonderful to see so many people in China enjoying the new iPhone XR,” he said.

The message underscored Apple’s hope that the device, the cheapest of its three iPhone releases, would be a strong seller in the world’s largest smartphone market.

Instead,...