To prepare this recipe gluten free, substitute the all-purpose flour in both the crust and filling with a gluten-free flour blend that includes xanthan gum. Additionally, ensure the baking powder is labeled gluten free. The pie will retain its creamy filling and spiced apple flavor while accommodating dietary needs.