Description
Hey you, developer! Read this, please!
We need you.
Today at WWDC20, Apple announced an all-new StoreKitTesting framework.
StoreKit testing in Xcode is a local test environment where you test in-app purchases without needing to connect to App Store servers. You set up in-app purchases in a StoreKit configuration file that you add to your Xcode project. Once you enable the configuration file, the test environment uses this local data when your app calls StoreKit APIs.
And, as you can see, there are a lot of issues with SwiftyStoreKit right now. Some of these same issues come up again, and again and again, and again. But, this is our chance to fix many of the currently open issues easily and quickly.
So, again, we need you. Help the SwiftyStoreKit community design, create, write, and run StoreKit Tests.
This will help our community not only grow but flourish! The alternatives to SwiftyStoreKit are, largely, either rolling your own StoreKit solution (blehhh) or capitulating to a closed, third-party paid service. We have a duty to the SwiftyStoreKit community and to the Apple ecosystem writ large to make this library the best it can be.
So please, download the Xcode 12 beta today, and let's work together towards an in-app purchase that "just works" for developers too.
Getting Started
This is a new technology in beta, but it appears that its usage and implementation would drastically improve this library. You can get started by cloning your own fork of SwiftyStoreKit, launching the project and Xcode 12 beta, and writing some new StoreKit Tests!
Issues that will likely benefit from these tests:
- Verify Receipt fails for Apple Reviewer and keeps on rejecting app (Error: SwiftyStoreKit.ReceiptError error 2). #545
- User payment is successful, StoreKit return fails "paymentCancelled". #537
- Apple review rejected but I cannot replicate their results? #525
- When the Apple team reviewed, the requested product information was empty. But I have data on my local test. I don't know what the problem is, so I came to ask for help. #516
- Use Verify Subscription instead of Verify Receipt #476
- Apple Review #448
- Apple always rejects app because of in app purchase #397
- SwiftStoreKit.ReceiptError error 1 #392
- Purchase not completing in app review. #361