In a large bowl mix apples, cranberries, and sugar. Spoon into prepared baking dish.
In the same bowl, mix together oats, brown sugar,flour, and pecans. Stir in melted butter. Sprinkle oatmeal mixture evenly over top of the apples. Bake for 45 mins.