Let's use the $L^2$ norm as an example. Then, we have
$$\begin{align}
||A-X(t)||^2&=\sum_{i,j}|A_{ij}-X_{ij}(t)|^2\\\\
&=\sum_{i,j}(A^2_{ij}-2A_{ij}X_{ij}(t)+X^2_{ij}(t))
\end{align}$$
Differentiating $(1)$ we obtain
$$\begin{align}
\frac{d}{dt}||A-X(t)||^2&=\sum_{i,j}(-2A_{ij}X'_{ij}(t)+2X_{ij}X_{ij}'(t))\\\\
&=2\sum_{ij}(X_{ij}(t)-A_{ij})X'_{ij}(t)\\\\
&=2\sum_{ij}(X_{ij}(t)-A_{ij})(X'_{ji})^T(t)\\\\
&=2\,\text{tr}\left((X(t)-A)X'(t)\right)
\end{align}$$
as was to be shown!
Note: As elucidated in the comment by @mattos, the result can be obtained using inner product notatation. We could have begun by writing $||A-X(t)||^2=\langle A-X(t),A-X(t)\rangle$. Upon differentiating, we obtain $$\frac{d}{dt}||A-X(t)||^2=\langle X(t)-A,X'(t)\rangle +\langle X'(t),X(t)-A\rangle=2\text{tr}\left(A-X(t),X'(t)\right)$$as expected!