Skip to content

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

Closed
@KevinVladG

Description

@KevinVladG

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 12
  • Firebase SDK version: 6.32.2
  • Firebase Component: Database
  • Component version: 6.6.0
  • Installation method: CocoaPods

[REQUIRED] Step 2: Describe the problem

Warning for Deprecations shows up:

/Users/{$CURRENT_USER}/{$PROJECT_FOLDER}/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Persistence/FLevelDBStorageEngine.m:169:50: 'unarchiveObjectWithData:' is deprecated: first deprecated in iOS 12.0 - Use +unarchivedObjectOfClass:fromData:error: instead

Steps to reproduce:

  • Updated to Xcode version 12
  • Install/Update pods in working project
  • Update pods to Swift 5.0 framework
  • Applications Builds and Runs on iOS version 14
  • Warning for Deprecations shows up for FirebaseDatabase pod

Relevant Code:

  • Path to file: /Users/{$CURRENT_USER}/{$PROJECT_FOLDER}/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Persistence/FLevelDBStorageEngine.m

  • File name: FLevelDBStorageEngine.m

  • Line number of error: 169:50

id pendingPut = [NSKeyedUnarchiver unarchiveObjectWithData:data];

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions