I had this problem too on the simulator, but going back to 18.1 it worked fine. My app is mainly Objective C with calls to Swift to do the app transaction calls since StoreKit 2 is only for Swift.
I solved it for 18.2 by going in to the storyboard and looking at the transitions from my main screen to the purchase screen. In there I changed the segue Kind to "Present Modally" and also for the Presentation to be "Over Full Screen".
If you do these two settings it then works fine, or at least it did for me.
Topic:
App & System Services
SubTopic:
StoreKit
Tags: