Hi, did you add the StoreKit Configuration File?
When creating it, make sure to check 'Sync this file with an app in App Store Connect', select your app. Finally, make sure that the file was able to sync with the app store. good luck!
Topic:
App & System Services
SubTopic:
StoreKit