{"id":1218,"date":"2017-10-15T16:25:04","date_gmt":"2017-10-15T07:25:04","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=1218"},"modified":"2017-10-15T16:39:23","modified_gmt":"2017-10-15T07:39:23","slug":"xcode-resolve-this-application-is-modifying-the-autolayout-engine-from-a-background-thread-after-the-engine-was-accessed-from-the-main-thread-this-can-lead-to-engine-corruption-and-weird-crashes","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/xcode-resolve-this-application-is-modifying-the-autolayout-engine-from-a-background-thread-after-the-engine-was-accessed-from-the-main-thread-this-can-lead-to-engine-corruption-and-weird-crashes\/","title":{"rendered":"[xcode] Resolve Purple warning or &#8220;This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes&#8221; Error"},"content":{"rendered":"<p>on Xcode, many &#8220;This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes&#8221; Error has been happened.<\/p>\n<p>or on xcode, purple warning will be appeared.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1225 size-full\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-15-16.35.58.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-10-15 16.35.58\" width=\"1018\" height=\"78\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-15-16.35.58.png 1018w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-15-16.35.58-300x23.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/10\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-10-15-16.35.58-768x59.png 768w\" sizes=\"(max-width: 1018px) 100vw, 1018px\" \/><\/p>\n<p>though app is not down, Tried to resolve.<\/p>\n<p>Change from<\/p>\n<pre>indicator.isHidden = true<\/pre>\n<p>To<\/p>\n<pre> DispatchQueue.main.async {\r\n       indicator.isHidden = true\r\n }\r\n<\/pre>\n<p>by &#8220;DispatchQueue.main.async&#8221;, let code run on main thread. then error has been disappeared.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>on Xcode, many &#038;#822<\/p>\n","protected":false},"author":1,"featured_media":126,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1218"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=1218"}],"version-history":[{"count":4,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1218\/revisions"}],"predecessor-version":[{"id":1230,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1218\/revisions\/1230"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/126"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=1218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=1218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=1218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}