Combine cranberries, water, apples, sugar, onion, raisins, ginger, garlic, salt, allspice, cinnamon and cloves in a large saucepan.
Bring to a boil over medium-high heat. Reduce heat; cover, stirring occasionally, for 15 minutes. Add syrup, vinegar and pecans. Cook uncovered for 15 minutes, stirring frequently.
Delicious served with roast turkey, pork roast or baked ham.