Skip to content

unarchiveObjectWithData:' is deprecated: first deprecated in iOS 12.0 - Use +unarchivedObjectOfClass:fromData:error: instead #400

Description

@iaftab3s

i am using this library to integrate apple pay, after adding it it gives me error
"unarchiveObjectWithData:' is deprecated: first deprecated in iOS 12.0 - Use +unarchivedObjectOfClass:fromData:error: instead"
in this line
return [NSKeyedUnarchiver unarchiveObjectWithData:data];
Let me know how can i fix with this issue. i dont want to make changes manually in pod libraries.
need updated solution how can i upgrade this library because it installs braintree 4.. and this issue is resolved at brantree 5..

Activity

  1. HanyAhmedMagdy commented on Oct 28, 2024

    @HanyAhmedMagdy

    i'm also facing the same issue , any updates here ? @iaftab3s @naoufal

  2. litinskii commented on Nov 29, 2024

    @litinskii

    i'm also facing the same issue , any updates here ? @iaftab3s @naoufal

  3. Pulimet commented on Jul 26, 2025

    @Pulimet

    You can suppress warnings for the Braintree pod in your Podfile by adding the inhibit_all_warnings! directive for that specific pod:

    # Suppress warnings for the Braintree pod
    # react-native-payments depends on Braintree version 4 (Issue resolved in version 5)
    pod 'Braintree', '~> 4', :inhibit_warnings => true
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions