{"id":3121,"date":"2014-03-16T22:55:14","date_gmt":"2014-03-16T22:55:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/chartboost-always-crashes-in-ios5-collection-of-common-programming-errors-2\/"},"modified":"2014-03-16T22:55:14","modified_gmt":"2014-03-16T22:55:14","slug":"chartboost-always-crashes-in-ios5-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/chartboost-always-crashes-in-ios5-collection-of-common-programming-errors-2\/","title":{"rendered":"Chartboost always crashes in iOS5-Collection of common programming errors"},"content":{"rendered":"<p>I don&#8217;t know Chartboost, but the error message indicates that the code makes use of the modern &#8220;NSDictionary and NSArray subscripting&#8221; feature, e.g.<\/p>\n<pre><code>dict[@\"key\"] \/\/ instead of [dict objectForKey:@\"key\"]\n<\/code><\/pre>\n<p>According to the &#8220;Objective-C Feature Availability Index&#8221;, NSDictionary and NSArray subscripting requires the iOS 6.0 or later SDK and the LLVM Compiler 4.0. It deploys to iOS 5 and later.<\/p>\n<p>So if you don&#8217;t need the iOS 4.3 compatibility, setting the deployment target to iOS 5 and compiling against the iOS 6 SDK should solve the problem. Make sure that &#8220;Apple LLVM compiler&#8221; and not &#8220;LLVM GCC&#8221; or similar is set as compiler in the build settings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I don&#8217;t know Chartboost, but the error message indicates that the code makes use of the modern &#8220;NSDictionary and NSArray subscripting&#8221; feature, e.g. dict[@&#8221;key&#8221;] \/\/ instead of [dict objectForKey:@&#8221;key&#8221;] According to the &#8220;Objective-C Feature Availability Index&#8221;, NSDictionary and NSArray subscripting requires the iOS 6.0 or later SDK and the LLVM Compiler 4.0. It deploys to [&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-3121","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3121","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=3121"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3121\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}