Comments (4)
from storehelper.
I can't reproduce this I'm afraid. This is what I did to reproduce the issue:
Setup:
- Running on macOS Ventura 13.3 (22E252), Xcode 14.3 (14E222b)
- Using a real iPhone XS running iOS 16.4
- Opened an iOS/macOS Xcode project for an app I have live in the App Store
- Updated packages to get the latest version of StoreHelper
StoreKit testing on real device:
- Did a Clean Build Folder and rebuilt for iOS 15 for local StoreKit testing (debug build, with a .storekit file)
- Deployed to the real device
- All products correctly retrieved from the App Store and shown using correct local prices
- Purchased a product
- Product was correctly shown as purchased within the app and validation suceeded
- Was able to access the functionality purchased
- Stopped the app running
- Deleted the app from the device
Sandbox testing on real device:
- Did a Clean Build Folder and then rebuilt for iOS 15 using a scheme for sandbox testing (debug build, no .storekit file)
- Used App Store Connect to remove all previous purchases for my sandbox test account
- On the real device setup my sandbox account in Settings > App Store > Sandbox Account
- Deployed to the real device
- All products correctly retrieved from the App Store and shown using correct local prices
- Started the process to purchase a product
- Was correctly prompted to sign in to the App Store with my sandbox account
- After signing in purchase proceeded and completed normally
- Product was correctly shown as purchased within the app
- Was able to access the functionality purchased
- Stopped the app running
- Deleted the app from the device
- Repeated the above steps but built for iOS 16.4 this time
- Again, purchase process worked correctly and without errors
I also removed the app from another real device and re-installed from the real App Store. Previous purchases were correctly recognized, auto-restored and validated.
So, it passes the "it all works on my machine" test! :-)
But what could be causing your issues? Actually, those errors about "StoreKit Testing in Xcode certificate is not trusted" look familiar. I seem to remember seeing something similar about 6 months ago, but only related to macOS builds. I never got to the bottom of it and a new version of Xcode seemed to cure it.
A couple of ideads:
- I wonder what would happen if you create a completely new, very simple demo app that uses StoreKit testing WITHOUT using StoreHelper. If you see the same errors it would indicate something related to your setup.
- Have you tried using sandbox testing? I have a feeling that might work because it's using a different certificate for validating transactions.
Let me know how you get on - I'm happy to help if I can.
Russell
from storehelper.
Success! You gave me a clue about the Sandbox account. I think my old one was just "old". Created a new one (a bit of a pain), turned off .storekit file, ran on device from Xcode, did purchase and it worked. Thanks!
Great response and thanks for getting to it so quickly. Can I give the repo a second star? ;-)
from storehelper.
Excellent! So glad you got it sorted out!
from storehelper.
Related Issues (20)
- Do we have any idea on the next release HOT 1
- Missing repository reference HOT 3
- Missing products in production ready app HOT 3
- Subscriptions renewed when the MacOS app was closed are not picked up by Storekit2 HOT 10
- How to implement custom transaction handler HOT 3
- Compile Issue HOT 1
- Cancellation not detected HOT 5
- Question about using StoreHelper in Safari Extension project HOT 3
- Auto-renew subscription eligibility HOT 1
- "Writerly" hard-coded into StoreHelper HOT 1
- Can I use this without having the local Product.plist configuration file? HOT 1
- Log clashes for different transactions due to missing transactionID in TransactionLog HOT 1
- wrong version: not same as git tag HOT 1
- How to disable logs? HOT 1
- Can't compile on visionOS HOT 1
- Please provide a document for UIKit to use HOT 1
- Use custom colors
- Any support of Privacy Manifest? HOT 5
- Update package version 2.62.0 but used 2.6.3 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storehelper.