Does the child have to be living with the proposed guardian for a certain amount of time before the guardianship is granted?

No, there is no requirement for the child to be living with the guardian for a certain amount of time when the guardianship is filed or before it is granted.  But the Court will most likely want a plan in place for when the child will begin living with the guardian.  The child must live with the guardian unless the judge says otherwise.