If a divorce decree says alternate claiming a child dependent but the child didnt reside with the other parent for atleast 6 months, who can claim the child?

My ex claimed our daughter based on a divorce decree stating we would alternate who claimed her on taxes, however she resided with him less then 10% of the year? Doesnt whom the child reside with determine dependency for tax purposes?