问题
I am getting response like below: Purchase Failed: related decl 'e' for SKErrorCode(_nsError: Error Domain=SKErrorDomain Code=3 "Invalid product id: au.com.happyheartsandminds.happyhearts.members995" UserInfo={NSLocalizedDescription=Invalid product id: au.com.happyheartsandminds.happyhearts.members995})
Thank you
回答1:
Please be sure to complete the 'Agreements, Tax and Banking' information in iTunes connect first. Without it you will constantly receive this error message.
Screenshot of iTunes Connect Agreements, Tax and Banking.
回答2:
It means that the product Id au.com.happyheartsandminds.happyhearts.members995
is invalid. Make sure you've configured the product correctly in App Store Connect and the product Id matches.
Here is a quick blog post that explains the common errors of configuring products in more detail: Configuring In-app Products is Hard
来源:https://stackoverflow.com/questions/54569204/xcode-in-app-purchase-invalid-product-identifier