Prep the crust: If using a raw pie crust, fit it into a 9-inch pie dish.
Crimp the edges. Chill in the fridge while you make the filling and topping. If using a frozen, pre-formed crust, keep it chilled until ready.
Heat the oven: Preheat to 400°F (200°C).
Place a rack in the lower third of the oven. Set a sheet pan on the rack to catch any drips.
Make the filling: In a large bowl, combine the sliced apples, cranberries, granulated sugar, brown sugar, cornstarch, cinnamon, nutmeg, ginger, salt, lemon juice, and vanilla. Toss until the fruit is evenly coated.
Let it sit for 10 minutes so the juices start to release.
Mix the crumble: In another bowl, stir together the flour, oats, brown sugar, cinnamon, and salt. Add the cold butter. Using a pastry cutter or your fingers, work the butter into the dry ingredients until you get coarse, pea-sized crumbs.
Stir in the nuts, if using. Chill the crumble for 5 minutes to keep it firm.
Assemble the pie: If your crust is raw, brush the rim lightly with the egg wash. Spoon the fruit mixture into the crust, mounding it slightly in the center.
Pour any juices over the fruit. Sprinkle the crumble evenly on top, pressing it gently so it clings.
Bake hot, then lower the heat: Bake at 400°F for 20 minutes. Then reduce the oven temperature to 350°F (175°C) and continue baking for 35–45 minutes, until the crumble is golden and the filling is bubbling visibly through the topping at the edges or in small spots.
Tent if browning too fast: If the topping or crust is getting too dark, cover loosely with foil for the last 15–20 minutes.
Cool completely: Set the pie on a rack and let it cool at least 3 hours before slicing.
This helps the filling set so slices hold together.
Serve: Slice with a sharp knife. Serve warm or at room temperature with vanilla ice cream, whipped cream, or a drizzle of warm caramel.