LLDB doesn't handle higher level lexical scope variables while inside a block

Originator:futuretap
Number:rdar://11672281 Date Originated:15-Jun-2012 01:22 AM
Status:Open Resolved:
Product:Developer Tools Product Version:4.5 beta 1
Classification:Other Bug Reproducible:Always
 
In this snippet of code:

39    NSDictionary *dict = [[NSUbiquitousKeyValueStore defaultStore] dictionaryRepresentation];
40    
41    [dict enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
42		if (![key isMatchedByRegex:iCloudBlacklistRegex] && ![[defaults valueForKey:key] isEqual:obj]) {
43			[defaults my_setObject:obj forKey:key];
44		}
45    }];
	

"dict" is obviously defined in the scope outside of the block.
While I'm hanging in line 42 (inside the block) "po dict" gives me this result:

error: use of undeclared identifier 'dict'
error: 1 errors parsing expression

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!