Cannot accept Xcode StoreKit purchase dialog

I have a macOS app where I am testing the in app subscription purchase using Xcode.

When I trigger the purchase using this code, a dialog is shown in the upper right of my screen, which cannot be moved and just has a "cancel" button. How can I accept the test purchase?

let result = try await product.purchase()

Does the issue still occur?

Cannot accept Xcode StoreKit purchase dialog
 
 
Q