Archiving CLPlacemark no longer saves any meaningful data in iOS 7.

Originator:jan
Number:rdar://14270742 Date Originated:06/25/2013
Status:Open Resolved:
Product:iOS Product Version:7
Classification:Bug Reproducible:Always
 
Summary:
When archiving any CLPlacemark object using NSKeyedArchiver and later trying to load the archived object, it does not save any of its properties like location or addressDictionary. This used to work prior to iOS 7, and the class indicates it conforms to NSCoding.

Steps to Reproduce:
1. Try to obtain any CLPlacemark, like using CLGeocoder
2. Archive it.
3. With the NSData obtained, try to unarchive it.
4. Check its properties, they are mostly nil.

Expected Results:
Properties such as location or addressDictionary should be saved.

Actual Results:
Those properties are nil after unarchiving.

Regression:
It worked fine on iOS 6.

Notes:
Attached sample code that can reproduce the issue. Notice the difference when ran on iOS6 vs iOS7. Please see output from NSLog.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!