Skip to content

Commit 93a7c33

Browse files
Set class for NSKeyedUnarchiver so that Objective C attribution info class can be deserialized in Swift.
1 parent 816178f commit 93a7c33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

swift-sdk/IterableAPIInternal.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,9 @@ import Foundation
858858

859859
// super init
860860
super.init()
861+
862+
// Fix for NSArchiver bug
863+
NSKeyedUnarchiver.setClass(IterableAttributionInfo.self, forClassName: "IterableAttributionInfo")
861864

862865
// get email and userId from UserDefaults if present
863866
retrieveEmailAndUserId()

0 commit comments

Comments
 (0)