Prepare the crust by combining flour and salt in a bowl.
Cut in the butter until the mixture resembles coarse crumbs.
Gradually add cold water while mixing until the dough comes together.
Divide the dough in two, shape it into disks, wrap, and refrigerate for at least an hour.
Preheat your oven to 375°F (190°C).
Roll out one disk for the bottom crust and place it in your baking sheet.
In a mixing bowl, combine the diced apples, sugar, cornstarch, cinnamon, vanilla, and salt.
Pour the apple mixture into the prepared crust.
Roll out the second disk of dough for the top crust and place it over the filling.
Seal the edges and make slits in the top crust if not using a lattice.
Brush the top crust with beaten egg for a golden finish.
Bake for 45-50 minutes or until the apples are tender and the crust is golden brown.
Allow the pie to cool before slicing.