{"id":15035,"date":"2016-07-01T13:54:48","date_gmt":"2016-07-01T17:54:48","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=15035"},"modified":"2016-07-01T13:54:48","modified_gmt":"2016-07-01T17:54:48","slug":"xcode-clobbered-by-socketfilterfw-at-launch","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/07\/01\/xcode-clobbered-by-socketfilterfw-at-launch\/","title":{"rendered":"Xcode Clobbered by socketfilterfw at Launch"},"content":{"rendered":"<p><a href=\"https:\/\/discussions.apple.com\/thread\/6713223?start=0&amp;tstart=0\">Iritscen<\/a>:<\/p>\n<blockquote cite=\"https:\/\/discussions.apple.com\/thread\/6713223?start=0&amp;tstart=0\">\n<p>Every time I open Xcode, there is massive hard drive churn. iStat seems to indicate that the culprit is socketfilterfw. The computer is not properly useable again for upwards of 2 minutes since the disk churn slows everything to a crawl.<\/p>\n<\/blockquote>\n<p>I&rsquo;ve been getting this, too, except that (with an SSD) the main symptom is extremely high CPU usage. It takes more like 10 minutes to resolve.<\/p>\n<blockquote cite=\"https:\/\/discussions.apple.com\/thread\/6713223?start=0&amp;tstart=0\"><p>When Xcode launches, the OS X Firewall needs to scan the entire Xcode application bundle for some reason (some kind of checksum validation?).  socketfilterfw is the Firewall&rsquo;s agent for doing this.<\/p><p>It was suggested that we fiddle with the Firewall settings under the Security preference pane to try to fix this, and I&rsquo;ve found that by removing the listing for Xcode and turning off the setting &ldquo;Automatically allow signed software to receive incoming connections&rdquo;, it seems to have stopped socketfilterfw from taking over my computer for a couple minutes at every launch of Xcode.  I also tried changing Xcode&rsquo;s Firewall listing from &ldquo;allow&rdquo; to &ldquo;block&rdquo;, and this did not make a difference; only removing it from the list did.<\/p><\/blockquote>\n<p>Simply removing Xcode from the list fixed the problem for me. I&rsquo;m not sure what functionality I&rsquo;m losing by not allowing Xcode to accept connections.<\/p>\n<p>See also: <a href=\"http:\/\/apple.stackexchange.com\/questions\/187924\/xcode-app-gets-scanned-by-socketfilterfw-os-x-firewall-at-every-launch\">Ask Different<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Iritscen: Every time I open Xcode, there is massive hard drive churn. iStat seems to indicate that the culprit is socketfilterfw. The computer is not properly useable again for upwards of 2 minutes since the disk churn slows everything to a crawl. I&rsquo;ve been getting this, too, except that (with an SSD) the main symptom [&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":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","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":[2],"tags":[1204,30,1199,226],"class_list":["post-15035","post","type-post","status-publish","format-standard","hentry","category-technology","tag-firewall","tag-mac","tag-mac-os-x-10-11","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15035","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=15035"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15035\/revisions"}],"predecessor-version":[{"id":15036,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15035\/revisions\/15036"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=15035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=15035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=15035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}