Retrieving from UserDefaults returns nil in SDK 8.0 beta

Originator:winsmith
Number:rdar://26894183 Date Originated:6/20/16
Status:Open Resolved:
Product:iOS SDK Product Version:Developer Tools 8.0 (8S128d)
Classification: Reproducible:Always
 
Summary:
When I try to retrieve a UserDefault object or bool, the object:forKey: and bool:forKey: always return nil

Steps to Reproduce:
1. Save an object or bool to UserDefaults
2. Try to retrieve and access that same object

Expected Results:
The object is present

Actual Results:
The result is nil

Version:
Developer Tools 8.0 (8S128d)

Notes:


Configuration:
XCode Version 8.0 beta (8S128d)

Attachments:
'UserDefaultsDataLossExample.zip' was successfully uploaded.

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!