Apple Inc. Chief Executive Officer Tim Cook commended Chinese developers and the company’s partners in the country after a week of rising pressures in one of its biggest markets.