{"id":14507,"date":"2016-05-11T12:09:05","date_gmt":"2016-05-11T16:09:05","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=14507"},"modified":"2016-05-11T12:09:05","modified_gmt":"2016-05-11T16:09:05","slug":"show-todos-and-fixmes-as-warnings-in-xcode","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/05\/11\/show-todos-and-fixmes-as-warnings-in-xcode\/","title":{"rendered":"Show TODOs and FIXMEs As Warnings in Xcode"},"content":{"rendered":"<p><a href=\"https:\/\/deallocatedobjects.com\/posts\/show-todos-and-fixmes-as-warnings-in-xcode-4\">Jake Marsh<\/a> (in 2011):<\/p>\n<blockquote cite=\"https:\/\/deallocatedobjects.com\/posts\/show-todos-and-fixmes-as-warnings-in-xcode-4\">\n<p>Now just build and you&rsquo;ll see all your <code>\/\/TODO:<\/code> and <code>\/\/FIXME:<\/code> comments have become warnings. I love this technique, it might not be right for everyone, but hope it helps someone.<\/p>\n<\/blockquote>\n<p>Xcode parses the output of a shell script build phase looking for &ldquo;warning:&rdquo;.<\/p>\n<p>Via <a href=\"http:\/\/indiestack.com\/2016\/05\/scripted-swift-warnings\/\">Daniel Jalkut<\/a>:<\/p>\n<blockquote cite=\"http:\/\/indiestack.com\/2016\/05\/scripted-swift-warnings\/\"><p>Since I <a href=\"http:\/\/indiestack.com\/2016\/05\/artificial-swift-warnings\/\">complained yesterday<\/a> about Swift&rsquo;s lack of a counterpart to Objective C&rsquo;s <code>#warning<\/code> directive, folks have been in touch to encourage another solution to this problem.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Jake Marsh (in 2011): Now just build and you&rsquo;ll see all your \/\/TODO: and \/\/FIXME: comments have become warnings. I love this technique, it might not be right for everyone, but hope it helps someone. Xcode parses the output of a shell script build phase looking for &ldquo;warning:&rdquo;. Via Daniel Jalkut: Since I complained yesterday [&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":[4],"tags":[30,71,901,226],"class_list":["post-14507","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-mac","tag-programming","tag-swift-programming-language","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/14507","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=14507"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/14507\/revisions"}],"predecessor-version":[{"id":14508,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/14507\/revisions\/14508"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=14507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=14507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=14507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}