Rin died shortly after Obitos supposed death,proven by Kakashis flashback(when he was dieing) when we saw Rin young as she was shown in the Kakashi gaiden.
Rin died after kakashi gaiden but before narutos birth most likely. Idk why tobi never tried to use rinnegan or learn Edo tensei to bring her back tho.