I think people usually do it in a secondary fermentation or at least after the cider has cleared up. The cider will take at least 4 weeks to stop being cloudy generally. You could probably just toss the spices in your primary after it's no longer cloudy and then taste it every few days until...