{"id":1087,"date":"2012-03-11T14:31:15","date_gmt":"2012-03-11T18:31:15","guid":{"rendered":"http:\/\/blog.xamarin.com\/?p=1087"},"modified":"2012-03-11T14:31:15","modified_gmt":"2012-03-11T18:31:15","slug":"monotouch-and-ios-5-1","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/monotouch-and-ios-5-1\/","title":{"rendered":"MonoTouch and iOS 5.1"},"content":{"rendered":"<p>\t\t\t\tIn iOS 5.1 Apple introduced restrictions to <em>stdout<\/em> calls that can cause applications that are installed via the App Store or Ad-hoc deployment to throw an unhandled exception and to terminate if they attempt to write to the console. This includes calls to <em>Console.Write*<\/em> (<em>Write<\/em>, <em>WriteLine<\/em>). This problem affects all apps that attempt to use <em>stdout<\/em>\u00a0calls, including those written in Objective-C, although in Objective-C the error is silently ignored.<\/p>\n<p>This problem has been addressed with MonoTouch 5.2.4 by prohibiting any console output via apps that are built in\u00a0<em>Release<\/em> mode. However, any apps that were built in a previous version, or apps that have been\u00a0inadvertently\u00a0deployed in <em>Debug<\/em> mode will experience this issue.<\/p>\n<p>In order to address this in your apps, please do one of the following:<\/p>\n<ul>\n<li>Recompile with MonoTouch 5.2.4 or later.<\/li>\n<li>Remove any Console.Write*, or other console out calls (Debug.Write* calls are ok, as they only output in Debug mode).<\/li>\n<\/ul>\n<p>If your app is in the App Store, you should resubmit it and request a free, expedited app review for existing apps which can be found <a href=\"https:\/\/developer.apple.com\/appstore\/contact\/appreviewteam\/index.html\">here<\/a>. Under <strong>Request Details Section &gt; Request Type drop down<\/strong>, make sure to select <strong>Critical Bug Fix<\/strong>, and in the Reason for Request details box, let them know that you&#8217;re removing the Console Output calls.<\/p>\n<p>If you have an old version of MonoTouch, you can get the updates from MonoDevelop using <strong>Check for Updates<\/strong>.\u00a0If you need any more help, please submit a request to <a href=\"mailto:support@xamarin.com\">support@xamarin.com<\/a>.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In iOS 5.1 Apple introduced restrictions to stdout calls that can cause applications that are installed via the App Store or Ad-hoc deployment to throw an unhandled exception and to terminate if they attempt to write to the console. This includes calls to Console.Write* (Write, WriteLine). This problem affects all apps that attempt to use [&hellip;]<\/p>\n","protected":false},"author":1917,"featured_media":39167,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[6,4],"class_list":["post-1087","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developers","tag-ios","tag-xamarin-platform"],"acf":[],"blog_post_summary":"<p>In iOS 5.1 Apple introduced restrictions to stdout calls that can cause applications that are installed via the App Store or Ad-hoc deployment to throw an unhandled exception and to terminate if they attempt to write to the console. This includes calls to Console.Write* (Write, WriteLine). This problem affects all apps that attempt to use [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/1087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/users\/1917"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=1087"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/1087\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/39167"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=1087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=1087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=1087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}