崩溃报错libc++abi.dylib: terminating with uncaught exception of type NSException怎么查看

@try{

[[NSUserDefaults standardUserDefaults] setObject:dic forKey:@"abc"];
}
@catch(NSException *exception) {
NSLog(@"exception:%@", exception);
}
@finally {

}


如果dic中有值为null的情况就会崩溃

exception:Attempt to insert non-property list object {
avatar = "";
} for key @"abc"

你可能感兴趣的:(报错)