In the bowl of a stand mixer, cream the softened butter and sugar until smooth, about 2 minutes.
Add the ricotta and egg. Mix well, scraping down the sides often.
Add the flour, baking powder, and salt. Mix until combined, scraping down the sides as needed.
Transfer the dough to a piece of plastic wrap, flatten into a disc, wrap tightly, and chill for 2 hours.
Preheat the oven to 350°F and line a baking sheet with parchment.
On a lightly floured surface, roll the dough into a rough 16-inch circle, about ½ to ⅝ inch thick.
Transfer to the parchment-lined baking sheet. Bake for 20–25 minutes, or until the edges are lightly browned and the center is set. Cool completely.
In the bowl of a stand mixer, beat the softened cream cheese, caramel sauce, and apple pie spice until smooth.
Spread the cream cheese mixture evenly over the cooled crust.
Arrange the sliced apples over the topping. Drizzle with extra caramel sauce and sprinkle with chopped pecans.
Slice and serve immediately.