Skip to content

Crash when using PurchaseOption.appAccountToken #813

@davidgiga1993

Description

@davidgiga1993

When using the following code the app crashes:

String userUuid = "05abfa67-fe21-49c3-bb2d-b90593baa938";
NSSet<Product.PurchaseOption> options = new NSMutableSet<>();
options.add(Product.PurchaseOption.appAccountToken(new NSUUID(userUuid)));
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[missing_RvmProduct_PurchaseOption appAccountToken:]: unrecognized selector sent to class 0x1332748a0'

It is unclear to my why it stopped working, because this code has been in use for quite some time without issues.

Tested on iOS 18.5 (iPad with M1), when testing it on an iOS Simulator with iOS 18.3 it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions