In a bowl (or stand mixer) mix together the flour, sugar and a pinch of salt. Then mix in the butter, using your hands or the paddle of your stand mixer, until well incorporated. The resulting mixture will look a bit like little pebbles. Then the egg yolk (if using) and enough cold water so that the mixture just forms a solid dough. Do not knead or overmix, which will make the dough tough. And you should do this all quite quickly, so that the butter does not start to soften too much.
Wrap the dough in plastic wrap and put it in the fridge for 30 minutes or more, to let the dough rest and stiffen up again.
(NB: While the dough is resting, you can make the frangipane base and slice your apples.)
Take the dough out of the fridge, remove the plastic wrap, and roll it out with a rolling pin into a round that is at least an inch wider than the tart pan in which you intend to bake your crostata.
Using your rolling pin, roll up the dough and then unroll it over the tart pan, trying as best you can to center it well. Gently push the pastry into the bottom of the pan with your fingers. (If, as sometimes happens, your pastry doesn't quite reach the edge of the pan, you can always 'nudge' the pastry outwards to cover the edges of the pan.) Prick the pastry with a fork all over to prevent puffing while it bakes. Then trim off any excess pastry, using the edge of the tart pan as your guide. (NB: If you prefer, you can leave the excess on and fold them inward over the filling when the time comes.)