Strings from NSUserDefaults not visible, xcode 7.3

1

Today I upgraded to Xcode 7.3, and I also started getting odd behavior from NSUserDefaults. I don't know if they're related. String values I store in defaults are not visible upon retrieval but they have length and support substring extraction:

(lldb) po [[NSUserDefaults standardUserDefaults] objectForKey:UDEmail]

(lldb) po [[[NSUserDefaults standardUserDefaults] objectForKey:UDEmail] length]
0x00000014

(lldb) po [[[NSUserDefaults standardUserDefaults] objectForKey:UDEmail] substringFromIndex:0]
david.uzzell@att.net

Some methods that receive these strings act as if I have passed in a nil value. Is anyone else seeing this?

xcode7
nsuserdefaults
asked on Stack Overflow Mar 23, 2016 by David U

1 Answer

-1

It's not exactly an answer but if you call the "description" method, witch is declared in the NSObject class, you can see the value of the property.


User contributions licensed under CC BY-SA 3.0