SKStoreProductViewController on Mac Catalyst --> SKErrorDomain code 5

Hello,

I'm using the SKStoreProductViewController to open the App Store from a menu item in my app.

Under iOS I have no problem and the App Store page opens.
Under macOS (App compiled using Mac Catalyst), I get the following error:

KStoreProductViewController: Error Domain=SKErrorDomain Code=5 "(null)"

From the doc, code 5 is SKErrorStoreProductNotAvailable

I triple checked the iTunesItemIdentifier and I'm sure the App is available in the store.

I tested this problem with 2 apps:
  • One app that has the same iTunes product Identifier for the iOS and macOS version.

  • One app that has two separate product identifiers (One for iOS, and a different one for macOS)

Any clue ?
SKStoreProductViewController on Mac Catalyst --> SKErrorDomain code 5
 
 
Q