Treat warning as error on iOS and Mac