Preheat the oven to 350°F (175°C) and grease a 9-inch round or square baking pan.
Prepare the crumb topping by mixing flour, granulated sugar, brown sugar, and cinnamon in a small bowl. Stir in the melted butter until crumbs form. Set aside.
Make the cake batter: In a medium bowl, whisk together the flour, baking powder, baking soda, salt, and cinnamon.
In a large mixing bowl, beat the butter and sugar together until light and fluffy. Add the eggs one at a time, then stir in the vanilla extract.
Mix in the sour cream, followed by the dry ingredients, mixing until just combined. Fold in the diced apples.
Assemble the cake: Pour the batter into the prepared pan and smooth the top. Sprinkle the crumb topping evenly over the batter.
Bake for 40-45 minutes, or until a toothpick inserted into the center comes out clean.
Cool the cake in the pan for about 15 minutes before transferring it to a wire rack.
If using the glaze, whisk together powdered sugar, milk, and vanilla extract, then drizzle over the cooled cake.
Slice and enjoy!