{"id":4434,"date":"2014-03-30T10:57:35","date_gmt":"2014-03-30T10:57:35","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-use-instruments-to-determine-part-of-the-code-that-crashes-collection-of-common-programming-errors\/"},"modified":"2014-03-30T10:57:35","modified_gmt":"2014-03-30T10:57:35","slug":"how-to-use-instruments-to-determine-part-of-the-code-that-crashes-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-use-instruments-to-determine-part-of-the-code-that-crashes-collection-of-common-programming-errors\/","title":{"rendered":"How to use Instruments to determine part of the code that crashes-Collection of common programming errors"},"content":{"rendered":"<p>As per your error log, in my understanding you trying to insert nil value in <code>NSDictionary<\/code>\/<code>NSMutableDictionary<\/code>. You can not pass nil as value or key into dictionary otherwise your code will crash. My suggestion you debug you code using breakpoint, trace you execution stack i believe you will get your exact solution where your nil value inserting in dictionary.<\/p>\n<p>If you want to find exact line of crash you can take help of debugger command. Enter <strong>bt<\/strong> (back trace command) in debugger window, it will give also same executed crash stack that give you instrument analyzer. Go through following links<\/p>\n<p>https:\/\/developer.apple.com\/library\/ios\/documentation\/DeveloperTools\/Conceptual\/WhatsNewXcode\/Articles\/xcode_5_0.html<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"1QvhzxxK4v\"><p><a href=\"https:\/\/www.cimgf.com\/2012\/12\/13\/xcode-lldb-tutorial\/\">Xcode LLDB Tutorial<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Xcode LLDB Tutorial&#8221; &#8212; Cocoa Is My Girlfriend\" src=\"https:\/\/www.cimgf.com\/2012\/12\/13\/xcode-lldb-tutorial\/embed\/#?secret=1QvhzxxK4v\" data-secret=\"1QvhzxxK4v\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As per your error log, in my understanding you trying to insert nil value in NSDictionary\/NSMutableDictionary. You can not pass nil as value or key into dictionary otherwise your code will crash. My suggestion you debug you code using breakpoint, trace you execution stack i believe you will get your exact solution where your nil [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4434","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4434"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4434\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}