In fact, integration by parts works in this case. For convenience, we write
$$ S(r) := \int_{0}^{\pi/2} x^r \sin x \, dx, \qquad C(r) := \int_{0}^{\pi/2} x^r \cos x \, dx. $$
Idea. The intuition is that, since $x^r$ is largest at $x = \frac{\pi}{2}$, the behavior of integrand near this point will determine the growth speed of $S(r)$ and $C(r)$. Thus loosely speaking
$$ S(r) \approx \int_{0}^{\pi/2} x^r \, dx = \frac{(\pi/2)^{r+1}}{r+1}$$
and
$$ C(r) \approx \int_{0}^{\pi/2} x^r \left(\frac{\pi}{2} - x\right) \, dx
= \frac{(\pi/2)^{r+2}}{(r+1)(r+2)}. $$
This forces that $c = -1$.
Solution. We make the following two observations:
Applying integration by parts, for $r > -1$ we have
$$ C(r) = \frac{1}{r+1}S(r+1), \qquad S(r) = \frac{(\pi/2)^{r+1}}{r+1} - \frac{1}{r+1}C(r+1). \tag{*} $$
Using the fact that sine and cosine are bounded by $1$, we have the following crude bound
$$ |S(r)| \leq \frac{(\pi/2)^{r+1}}{r+1}, \qquad |C(r)| \leq \frac{(\pi/2)^{r+1}}{r+1}. $$
Thus if $r \gg 1$, then applying $\text{(*)}$ twice,
$$\frac{S(r)}{C(r)}
= \frac{(\pi/2)^{r+1} - C(r+1)}{S(r+1)}
= (r+2) \frac{(\pi/2)^{r+1} - C(r+1)}{(\pi/2)^{r+2}- C(r+2)}.$$
Dividing both the numerator and the denominator by $(\pi/2)^{r+1}$ and utilizing our crude bound,
$$\frac{S(r)}{C(r)}
= (r+2) \frac{1 + \mathcal{O}(r^{-1})}{(\pi/2) + \mathcal{O}(r^{-1})}. $$
Therefore
$$ \lim_{r\to\infty} r^{-1} \frac{S(r)}{C(r)} = \frac{2}{\pi} $$
and $c = -1$ is only the possible choice.