Guest User

Untitled

a guest
Apr 25th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main(int argc, const char * argv[]) {
  4. @autoreleasepool {
  5. NSURL *url = ...
  6.  
  7. NSDictionary *dict = [NSDictionary dictionaryWithContentsOfURL:url];
  8.  
  9. NSLog(@"%@", dict);
  10. }
  11. return 0;
  12. }
  13.  
  14. (lldb) breakpoint set -r '.*NSPropertyListSerialization.*'
  15.  
  16. (lldb) bt
  17. * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
  18. * frame #0: 0x00007fff4f22a018 Foundation`+[NSPropertyListSerialization propertyListWithData:options:format:error:]
  19. frame #1: 0x00007fff4f229bbf Foundation`+[NSDictionary(NSDictionary) newWithContentsOf:immutable:] + 158
  20. frame #2: 0x00007fff4f242fe9 Foundation`+[NSDictionary(NSDictionary) dictionaryWithContentsOfURL:] + 45
  21. frame #3: 0x0000000100000e7d MyGreatProject`main(argc=1, argv=0x00007ffeefbff6a0) at main.m:15
  22. frame #4: 0x00007fff75461015 libdyld.dylib`start + 1
Add Comment
Please, Sign In to add comment