{"id":1001,"date":"2018-06-15T22:39:33","date_gmt":"2018-06-15T20:39:33","guid":{"rendered":"http:\/\/www.albertopasca.it\/whiletrue\/?p=1001"},"modified":"2018-07-25T20:04:07","modified_gmt":"2018-07-25T18:04:07","slug":"xcode-add-a-file-in-project-at-build-time","status":"publish","type":"post","link":"https:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/","title":{"rendered":"XCode &#8211; Add a file in project at build time"},"content":{"rendered":"<p>Imagine that you need to add a file in your <strong>XCode<\/strong> project the first time that you build the app.<\/p>\n<p>For instance, you have a configuration file, in Swift, that you want to compile and embed in your app (instead of using a <em>PLIST<\/em> file that is in <strong>CLEAR<\/strong>&#8230;) during the build phase and of course <em>use in your project<\/em>.<\/p>\n<p><!--more--><\/p>\n<h6>How to do it?<\/h6>\n<p>Use the &#8220;<strong>Run script!<\/strong>&#8221; of XCode!<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1002\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png?resize=2004%2C1194\" alt=\"\" width=\"2004\" height=\"1194\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png?w=2004&amp;ssl=1 2004w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png?resize=300%2C179&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png?resize=768%2C458&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png?resize=1024%2C610&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>And add as code this:<\/p>\n<pre class=\"p1\"><span class=\"s1\">#!\/bin\/bash<\/span>\r\n<span class=\"s1\">source ~\/.bash_profile<\/span>\r\n<span class=\"s2\">if ! [ -f <\/span><span class=\"s1\">\"${PROJECT_DIR}\/SecretKeys.swift\"<\/span><span class=\"s2\"> ]; then<\/span>\r\n<span class=\"s2\">  aws s3 cp s3:<\/span><span class=\"s1\">\/\/your-s3-bucket\/mobile\/theApp\/SecretKeys.swift \r\n    \"<strong>${PROJECT_DIR}\/SecretKeys.swift<\/strong>\"<\/span>\r\n<span class=\"s1\">fi<\/span><\/pre>\n<p>Let me to explain&#8230;<\/p>\n<blockquote><p>I want to use the <strong>bash<\/strong> and because I need to load my secret keys from my <strong>.bash_profile<\/strong>\u00a0I need to tell XCode to reload my .bash_profile because XCode use its own shell.<\/p>\n<p>Next, if the file is not already copied in my project, download from Amazon AWS S3 (or where you want) and copy to the project folder.<\/p><\/blockquote>\n<p>But is not enough! I want this file <span style=\"text-decoration: underline;\">to be added automatically in XCode<\/span>! Sure&#8230;<\/p>\n<p>The trick is to <strong>create a new file<\/strong> with the <strong>same name<\/strong> of your remote file, like this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.51.07.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1003\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.51.07.png?resize=2240%2C1416\" alt=\"\" width=\"2240\" height=\"1416\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.51.07.png?w=2240&amp;ssl=1 2240w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.51.07.png?resize=300%2C190&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.51.07.png?resize=768%2C485&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.51.07.png?resize=1024%2C647&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.51.07.png?w=2000 2000w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>And next, <strong>open it in the Finder<\/strong> and <strong>delete<\/strong>! Yes, delete, <span style=\"text-decoration: underline;\">but from the Finder<\/span>, not XCode.<\/p>\n<p>In this way, we should see this file in <span style=\"color: #ff0000;\"><strong>red<\/strong><\/span>, Like an error.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.52.33.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1004\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.52.33.png?resize=2240%2C1416\" alt=\"\" width=\"2240\" height=\"1416\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.52.33.png?w=2240&amp;ssl=1 2240w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.52.33.png?resize=300%2C190&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.52.33.png?resize=768%2C485&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.52.33.png?resize=1024%2C647&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.52.33.png?w=2000 2000w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>Perfect! That&#8217;s all.<\/p>\n<p>Now, if you build your project, the file from the cloud is downloaded and saved in the project folder, exactly in the\u00a0<strong><span class=\"s1\">${PROJECT_DIR}<\/span><\/strong>.<\/p>\n<p>After the build, your file became visible and is <strong>no more RED<\/strong>.<\/p>\n<p>You can use all this file contents in your project.<\/p>\n<hr \/>\n<p>All\u00a0of\u00a0this complications is due to the compilation of the Swift file and not to the PLIST files.<\/p>\n<p>Best way to embed in your app something secret is to compile a file or something else of course, but not a PLIST. <strong>IMHO<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<p>thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Imagine that you need to add a file in your XCode project the first time that you build the app. For instance, you have a configuration file, in Swift, that you want to compile and embed in your app (instead of using a PLIST file that is in CLEAR&#8230;) during the build phase and of <a class=\"read-more\" href=\"https:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":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":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[641,645,642,293,644,646,643,319,640,639,647,46,140],"class_list":["post-1001","post","type-post","status-publish","format-standard","hentry","category-generic","tag-aws","tag-build","tag-cp","tag-file","tag-include","tag-plist","tag-project","tag-remote","tag-s3","tag-secrets","tag-security","tag-swift","tag-xcode"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>XCode - Add a file in project at build time - while (true) {\u00a0}<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"XCode - Add a file in project at build time - while (true) {\u00a0}\" \/>\n<meta property=\"og:description\" content=\"Imagine that you need to add a file in your XCode project the first time that you build the app. For instance, you have a configuration file, in Swift, that you want to compile and embed in your app (instead of using a PLIST file that is in CLEAR&#8230;) during the build phase and of Read More\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/\" \/>\n<meta property=\"og:site_name\" content=\"while (true) {\u00a0}\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-15T20:39:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-07-25T18:04:07+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png\" \/>\n<meta name=\"author\" content=\"Alberto Pasca\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lupasca\" \/>\n<meta name=\"twitter:site\" content=\"@lupasca\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alberto Pasca\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/\"},\"author\":{\"name\":\"Alberto Pasca\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"headline\":\"XCode &#8211; Add a file in project at build time\",\"datePublished\":\"2018-06-15T20:39:33+00:00\",\"dateModified\":\"2018-07-25T18:04:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/\"},\"wordCount\":308,\"publisher\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"image\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/Schermata-2018-06-05-alle-20.45.13.png\",\"keywords\":[\"aws\",\"build\",\"cp\",\"file\",\"include\",\"plist\",\"project\",\"remote\",\"s3\",\"secrets\",\"security\",\"swift\",\"xcode\"],\"articleSection\":[\"generic\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/\",\"url\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/\",\"name\":\"XCode - Add a file in project at build time - while (true) {\u00a0}\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/Schermata-2018-06-05-alle-20.45.13.png\",\"datePublished\":\"2018-06-15T20:39:33+00:00\",\"dateModified\":\"2018-07-25T18:04:07+00:00\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/Schermata-2018-06-05-alle-20.45.13.png?fit=2004%2C1194&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/Schermata-2018-06-05-alle-20.45.13.png?fit=2004%2C1194&ssl=1\",\"width\":2004,\"height\":1194},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/xcode-add-a-file-in-project-at-build-time\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"XCode &#8211; Add a file in project at build time\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\",\"url\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\",\"name\":\"while (true) {\u00a0}\",\"description\":\"notes from a developer, tutorials, how-to, ideas\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\",\"name\":\"Alberto Pasca\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"caption\":\"Alberto Pasca\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\"},\"description\":\"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.\",\"sameAs\":[\"https:\\\/\\\/www.albertopasca.it\",\"albertopasca\",\"https:\\\/\\\/x.com\\\/lupasca\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"XCode - Add a file in project at build time - while (true) {\u00a0}","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/","og_locale":"en_US","og_type":"article","og_title":"XCode - Add a file in project at build time - while (true) {\u00a0}","og_description":"Imagine that you need to add a file in your XCode project the first time that you build the app. For instance, you have a configuration file, in Swift, that you want to compile and embed in your app (instead of using a PLIST file that is in CLEAR&#8230;) during the build phase and of Read More","og_url":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/","og_site_name":"while (true) {\u00a0}","article_published_time":"2018-06-15T20:39:33+00:00","article_modified_time":"2018-07-25T18:04:07+00:00","og_image":[{"url":"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png","type":"","width":"","height":""}],"author":"Alberto Pasca","twitter_card":"summary_large_image","twitter_creator":"@lupasca","twitter_site":"@lupasca","twitter_misc":{"Written by":"Alberto Pasca","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/#article","isPartOf":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/"},"author":{"name":"Alberto Pasca","@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"headline":"XCode &#8211; Add a file in project at build time","datePublished":"2018-06-15T20:39:33+00:00","dateModified":"2018-07-25T18:04:07+00:00","mainEntityOfPage":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/"},"wordCount":308,"publisher":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"image":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/#primaryimage"},"thumbnailUrl":"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png","keywords":["aws","build","cp","file","include","plist","project","remote","s3","secrets","security","swift","xcode"],"articleSection":["generic"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/","url":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/","name":"XCode - Add a file in project at build time - while (true) {\u00a0}","isPartOf":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/#primaryimage"},"image":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/#primaryimage"},"thumbnailUrl":"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png","datePublished":"2018-06-15T20:39:33+00:00","dateModified":"2018-07-25T18:04:07+00:00","breadcrumb":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/#primaryimage","url":"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png?fit=2004%2C1194&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2018\/06\/Schermata-2018-06-05-alle-20.45.13.png?fit=2004%2C1194&ssl=1","width":2004,"height":1194},{"@type":"BreadcrumbList","@id":"http:\/\/www.albertopasca.it\/whiletrue\/xcode-add-a-file-in-project-at-build-time\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.albertopasca.it\/whiletrue\/"},{"@type":"ListItem","position":2,"name":"XCode &#8211; Add a file in project at build time"}]},{"@type":"WebSite","@id":"https:\/\/www.albertopasca.it\/whiletrue\/#website","url":"https:\/\/www.albertopasca.it\/whiletrue\/","name":"while (true) {\u00a0}","description":"notes from a developer, tutorials, how-to, ideas","publisher":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.albertopasca.it\/whiletrue\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac","name":"Alberto Pasca","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","caption":"Alberto Pasca"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g"},"description":"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.","sameAs":["https:\/\/www.albertopasca.it","albertopasca","https:\/\/x.com\/lupasca"]}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/1001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/comments?post=1001"}],"version-history":[{"count":2,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/1001\/revisions"}],"predecessor-version":[{"id":1096,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/1001\/revisions\/1096"}],"wp:attachment":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/media?parent=1001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/categories?post=1001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/tags?post=1001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}