Coder Social home page Coder Social logo

Comments (4)

russell-archer avatar russell-archer commented on May 26, 2024

from storehelper.

russell-archer avatar russell-archer commented on May 26, 2024

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:

  1. 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.
  2. 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.

EPage-Ed avatar EPage-Ed commented on May 26, 2024

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.

russell-archer avatar russell-archer commented on May 26, 2024

Excellent! So glad you got it sorted out!

from storehelper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.