Heat the oven to 350°F, grease a 9-by-5-inch loaf pan, and line it with parchment.
Whisk together the flour, baking powder, baking soda, salt, and cinnamon.
Beat the softened butter and brown sugar until creamy, then beat in the eggs, sour cream, and vanilla.
Stir the dry ingredients into the wet mixture just until combined, then fold in the diced apples.
Combine the topping ingredients until coarse crumbs form, then sprinkle the crumbs over the batter.
Bake for 50 to 60 minutes until a toothpick shows moist crumbs but no wet batter; cool before slicing.