{"id":9064,"date":"2023-11-08T13:41:52","date_gmt":"2023-11-08T05:41:52","guid":{"rendered":"https:\/\/1989lifejourney.com\/?p=9064"},"modified":"2023-11-08T13:42:40","modified_gmt":"2023-11-08T05:42:40","slug":"calculate-how-many-lines-of-code-there-are-in-an-xcode-project","status":"publish","type":"post","link":"https:\/\/1989lifejourney.com\/?p=9064","title":{"rendered":"Find out how many lines of code there are in an Xcode project?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Ref: <a href=\"https:\/\/stackoverflow.com\/questions\/2003534\/how-to-find-out-how-many-lines-of-code-there-are-in-an-xcode-project\">https:\/\/stackoverflow.com\/questions\/2003534\/how-to-find-out-how-many-lines-of-code-there-are-in-an-xcode-project<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>If Xcode project only has *.swift code<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find . \\( -iname \\*.swift \\) -exec wc -l '{}' \\+\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ref: <a href=\"https:\/\/stackoverflow.com\/questions\/2003534\/how-to\" rel=\"nofollow\">https:\/\/stackoverflow.com\/questions\/2003534\/how-to<\/a> [&hellip;]<\/p>\n","protected":false},"author":139426785,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_postgate_lock_override":"inherit","_postgate_lock_mode":"inherit","_postgate_preview_mode":"inherit","_postgate_preview_limit":0,"_postgate_product_ids":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","jetpack_seo_llms_txt_always_include":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[37324612,596263,55138170,1],"tags":[],"post_folder":[],"class_list":["post-9064","post","type-post","status-publish","format-standard","hentry","category-ios-development","category-swift","category-technology-sharing","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paR5vw-2mc","jetpack-related-posts":[{"id":318,"url":"https:\/\/1989lifejourney.com\/?p=318","url_meta":{"origin":9064,"position":0},"title":"IOS &#8211; Importing Swift into Objective-C","author":"Kevin","date":"9 2 \u6708, 2020","format":false,"excerpt":"\u4e00\u822c\u5e38\u898b\u7684\u90fd\u662fImporting Objective-C into Swift (ex: Swift\u2026","rel":"","context":"\u5728\u300cIOS Development\u300d\u4e2d","block_context":{"text":"IOS Development","link":"https:\/\/1989lifejourney.com\/?cat=37324612"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2020\/02\/111.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2020\/02\/111.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2020\/02\/111.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2020\/02\/111.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2020\/02\/111.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2020\/02\/111.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":8228,"url":"https:\/\/1989lifejourney.com\/?p=8228","url_meta":{"origin":9064,"position":1},"title":"Software team","author":"Kevin","date":"28 6 \u6708, 2023","format":false,"excerpt":"\u4e0d\u540c\u5de5\u7a0b\u5e2b\u968e\u5c64\u5b9a\u7fa9 Staff Engineer(or Principal Engineer or \u2026","rel":"","context":"\u5728\u300cTechnology sharing\u300d\u4e2d","block_context":{"text":"Technology sharing","link":"https:\/\/1989lifejourney.com\/?cat=55138170"},"img":{"alt_text":"","src":"https:\/\/mermaid.ink\/svg\/pako:eNqN00tvwjAMAOC_EuUM4s5hEs8xRsej2ynl4KWGZqQJMqkY6vjvS9NN2oMKcokbu58cKS65tCnyLt9oe5QZkGPPw8Qwv3oitht3BELWI5kph9KtWbt9x_pihpAyDbTFFpM232t89wHZw6HtEHLmazOjJGi2J_vmfzysa7QfgLkYaFukrKr9lViJPsgdmgupoRgrykM7_3IDEdlXpS9kRmJM1rj2RXImlr2fpy9iUXfLIjCwRaqv20tMnZ-Hz0W5IGWk2vvbjcxWGUQ61wWLquAjlhmmhcbOsgCt3KmzQq3A9-fjD7YsYzTKUmdaVNv5G18FPG7G4xvw5wZ8GPBJMz65bj802INgj5vt8Q2N3zfgo4BPm_HpdfuxwZ4FOyr9I6je8xcYXQef_oC8xXOkHFTqB6msmIS7DHNMeNeHKdAu4Ymp6qBwNj4ZybuOCmzxYp-Cw6GCLUHOuxvQB3-KqXKWonoyw4CePwECjDgq","width":350,"height":200,"srcset":"https:\/\/mermaid.ink\/svg\/pako:eNqN00tvwjAMAOC_EuUM4s5hEs8xRsej2ynl4KWGZqQJMqkY6vjvS9NN2oMKcokbu58cKS65tCnyLt9oe5QZkGPPw8Qwv3oitht3BELWI5kph9KtWbt9x_pihpAyDbTFFpM232t89wHZw6HtEHLmazOjJGi2J_vmfzysa7QfgLkYaFukrKr9lViJPsgd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LIjCwRaqv20tMnZ-Hz0W5IGWk2vvbjcxWGUQ61wWLquAjlhmmhcbOsgCt3KmzQq3A9-fjD7YsYzTKUmdaVNv5G18FPG7G4xvw5wZ8GPBJMz65bj802INgj5vt8Q2N3zfgo4BPm_HpdfuxwZ4FOyr9I6je8xcYXQef_oC8xXOkHFTqB6msmIS7DHNMeNeHKdAu4Ymp6qBwNj4ZybuOCmzxYp-Cw6GCLUHOuxvQB3-KqXKWonoyw4CePwECjDgq 2x, https:\/\/mermaid.ink\/svg\/pako:eNqN00tvwjAMAOC_EuUM4s5hEs8xRsej2ynl4KWGZqQJMqkY6vjvS9NN2oMKcokbu58cKS65tCnyLt9oe5QZkGPPw8Qwv3oitht3BELWI5kph9KtWbt9x_pihpAyDbTFFpM232t89wHZw6HtEHLmazOjJGi2J_vmfzysa7QfgLkYaFukrKr9lViJPsgdmgupoRgrykM7_3IDEdlXpS9kRmJM1rj2RXImlr2fpy9iUXfLIjCwRaqv20tMnZ-Hz0W5IGWk2vvbjcxWGUQ61wWLquAjlhmmhcbOsgCt3KmzQq3A9-fjD7YsYzTKUmdaVNv5G18FPG7G4xvw5wZ8GPBJMz65bj802INgj5vt8Q2N3zfgo4BPm_HpdfuxwZ4FOyr9I6je8xcYXQef_oC8xXOkHFTqB6msmIS7DHNMeNeHKdAu4Ymp6qBwNj4ZybuOCmzxYp-Cw6GCLUHOuxvQB3-KqXKWonoyw4CePwECjDgq 3x"},"classes":[]},{"id":5874,"url":"https:\/\/1989lifejourney.com\/?p=5874","url_meta":{"origin":9064,"position":2},"title":"IOS &#8211; migrate xcode project to use SwiftUI","author":"Kevin","date":"12 9 \u6708, 2022","format":false,"excerpt":"https:\/\/stackoverflow.com\/questions\/56515495\/is-it\u2026","rel":"","context":"\u5728\u300cIOS Development\u300d\u4e2d","block_context":{"text":"IOS Development","link":"https:\/\/1989lifejourney.com\/?cat=37324612"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7878,"url":"https:\/\/1989lifejourney.com\/?p=7878","url_meta":{"origin":9064,"position":3},"title":"ChatGPT\u6e2c\u8a66_23 (Write the comment which style is Apple&#8217;s documentation comment style)","author":"Kevin","date":"12 4 \u6708, 2023","format":false,"excerpt":"\u554f\u984c: Write the comment for below Swift functions wh\u2026","rel":"","context":"\u5728\u300cChatGPT\u300d\u4e2d","block_context":{"text":"ChatGPT","link":"https:\/\/1989lifejourney.com\/?cat=760577830"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7606,"url":"https:\/\/1989lifejourney.com\/?p=7606","url_meta":{"origin":9064,"position":4},"title":"ChatGPT\u6e2c\u8a66_11\uff08\u8a62\u554fsendmail third party libraries for Swift)","author":"Kevin","date":"31 3 \u6708, 2023","format":false,"excerpt":"\u554fChatGPT: ios swift recommend third-party librarie\u2026","rel":"","context":"\u5728\u300cChatGPT\u300d\u4e2d","block_context":{"text":"ChatGPT","link":"https:\/\/1989lifejourney.com\/?cat=760577830"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":13304,"url":"https:\/\/1989lifejourney.com\/?p=13304","url_meta":{"origin":9064,"position":5},"title":"Inside the Art Market: How It Works and How I See Art","author":"Kevin","date":"26 1 \u6708, 2026","format":false,"excerpt":"This is a PowerPoint presentation I made to introd\u2026","rel":"","context":"\u5728\u300cArt\u300d\u4e2d","block_context":{"text":"Art","link":"https:\/\/1989lifejourney.com\/?cat=177"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=\/wp\/v2\/posts\/9064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=\/wp\/v2\/users\/139426785"}],"replies":[{"embeddable":true,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9064"}],"version-history":[{"count":2,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=\/wp\/v2\/posts\/9064\/revisions"}],"predecessor-version":[{"id":9066,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=\/wp\/v2\/posts\/9064\/revisions\/9066"}],"wp:attachment":[{"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9064"},{"taxonomy":"post_folder","embeddable":true,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=%2Fwp%2Fv2%2Fpost_folder&post=9064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}