Primitive data (eg: Int, Float, Double)Data Archived By Xcode7.3 using encodeObject() not able to unarchived using decodeObject(Key:) in Xcode8 Always returns nil
Steps to reproduce:
1. I am archiving model class and saving into a .json file.
If upgrading app after upgrading code in Xcode8 (iOS10) it is crashing first time, Because not able to unarchive Primitive data (eg: Int, Float, Double) type.
Testing Process:
1. Use Xcode7.3 in and run app in simulater save data in .json file.
2. After upgrade open app in Xcode8 and use same simulator app will get crash.
For encoding everywhere I am using:
encodeObject
For Decoding everywhere I am Using:
decodeObject
In Xcode8 decodeObject alwayse returns nil for Primitive data (eg: Int, Float, Double) type