{"id":21790,"date":"2018-06-12T14:49:26","date_gmt":"2018-06-12T18:49:26","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=21790"},"modified":"2018-06-12T19:47:57","modified_gmt":"2018-06-12T23:47:57","slug":"installing-and-debugging-on-mojave","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2018\/06\/12\/installing-and-debugging-on-mojave\/","title":{"rendered":"Installing and Debugging on Mojave"},"content":{"rendered":"<p><a href=\"https:\/\/eclecticlight.co\/2018\/06\/12\/cant-install-the-mojave-beta-on-an-external-drive-try-this\/\">Howard Oakley<\/a>:<\/p>\n<blockquote cite=\"https:\/\/eclecticlight.co\/2018\/06\/12\/cant-install-the-mojave-beta-on-an-external-drive-try-this\/\">\n<p>Many developers are reporting that they have been unsuccessful in getting the initial beta-release of macOS 10.14 Mojave to install on external drives. In many cases, they are connecting the external drive via a USB-C adaptor to a MacBook or MacBook Pro.<\/p>\n<p>I too had exactly this problem: I connected two different USB3 SSDs to my MacBook Pro 14,1 using a good quality USB-C to USB adaptor. Each time that I ran the Mojave installer to install on that external SSD, all it did was copy the install files into a folder, restart, then drop me back into High Sierra from the Mac&rsquo;s internal SSD.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/lapcatsoftware.com\/articles\/debugging-mojave.html\">Jeff Johnson<\/a> (<a href=\"https:\/\/twitter.com\/lapcatsoftware\/status\/1006173877565820928\">tweet<\/a>):<\/p>\n<blockquote cite=\"https:\/\/lapcatsoftware.com\/articles\/debugging-mojave.html\"><p>On Mojave, however, the first time after login that you try to debug an app without the <code>com.apple.security.get-task-allow<\/code> entitlement, the system displays a modal dialog requesting an administrator password:<\/p><blockquote><p>Developer Tool Access needs to take control of another process for debugging to continue.<\/p><\/blockquote><p>[&#8230;]<\/p><p>Prior to Mojave, Xcode would request on first launch to &ldquo;Enable Developer Mode on this Mac&rdquo;. On Mojave, Xcode no longer requests Developer Mode. However, Developer Mode can still be enabled manually with <code>\/usr\/sbin\/DevToolsSecurity -enable<\/code> in Terminal. After you authenticate with <code>DevToolsSecurity<\/code> once, Developer Mode is permanently enabled on Mojave, and you won&rsquo;t have to authenticate again to debug.<\/p>\n<p>[&#8230;]<\/p>\n<p>What happens on Mojave if you try to debug an app compiled with the hardened runtime? If System Integrity Protection is disabled, then nothing changes; it&rsquo;s the same as I described in the first section of this blog post. So the hardened runtime is enforced by SIP. With SIP enabled, you can still debug your app if it&rsquo;s compiled with the <code>com.apple.security.get-task-allow<\/code> entitlement. If an app doesn&rsquo;t have that entitlement, however, then you can&rsquo;t debug it at all.<\/p>\n<p>[&#8230;]<\/p>\n<p>The hardened runtime is also supposed to make the app ignore <code>DYLD_<\/code> environment variables such as <code>DYLD_PRINT_LIBRARIES<\/code>.<\/p><\/blockquote>\n\n<p>Previously: <a href=\"https:\/\/mjtsai.com\/blog\/2017\/10\/14\/the-impossible-dream-of-usb-c\/\">The Impossible Dream of USB-C<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Howard Oakley: Many developers are reporting that they have been unsuccessful in getting the initial beta-release of macOS 10.14 Mojave to install on external drives. In many cases, they are connecting the external drive via a USB-C adaptor to a MacBook or MacBook Pro. I too had exactly this problem: I connected two different USB3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2018-06-12T23:48:00Z","apple_news_api_id":"1acebb37-5fe2-4125-9e12-2179c5b4b8c4","apple_news_api_modified_at":"2018-06-12T23:48:01Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAQ==","apple_news_api_share_url":"https:\/\/apple.news\/AGs67N1_iQSWeEiF5xbS4xA","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[],"tags":[466,56,317,30,1609,1235,175,1154,226],"class_list":["post-21790","post","type-post","status-publish","format-standard","hentry","tag-codesigning","tag-debugging","tag-lldb","tag-mac","tag-macos-10-14","tag-system-integrity-protection","tag-usb","tag-usb-c","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/21790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=21790"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/21790\/revisions"}],"predecessor-version":[{"id":21791,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/21790\/revisions\/21791"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=21790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=21790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=21790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}