{"id":1162,"date":"2015-01-29T23:05:57","date_gmt":"2015-01-29T22:05:57","guid":{"rendered":"http:\/\/www.small-apps.com\/?p=1162"},"modified":"2018-09-25T03:01:31","modified_gmt":"2018-09-25T01:01:31","slug":"xcode-project-breaks-after-png-added","status":"publish","type":"post","link":"https:\/\/www.small-apps.com\/de\/2015\/01\/xcode-project-breaks-after-png-added\/","title":{"rendered":"Xcode Project breaks after png added"},"content":{"rendered":"<p><\/p>\n<p><p>From time to time we have pupil interns. Our last intern, let&#8217;s call him John started some Xcode Swift programming and all was fun and great. After more than a week of successful programming small pieces of this and that he created a png picture file using the gimp editor. He then pulled the file into the project and from that minute on, Xcode did not want to compile any more.<\/p>\n<p>It turned out, that the problem was the copypng perl script used by Xcode (found here: Programme \u25b8 Xcode.app \u25b8 Contents \u25b8 Developer \u25b8 Platforms \u25b8 iPhoneOS.platform \u25b8 Developer \u25b8 usr \u25b8 bin). Since the intern had created a subdirectory called John`s programs, he had a directory name with not only a space, but also a capital letter and a quote in it (I can not guarantee the particular type of quote any more, but I think it was the one I used above).<\/p>\n<p>When I think back of the times where just on of the three was forbidden or problematic, I still shiver and I have to admit, that I am still a little bit superstitious regarding the use of blanks in directory names, even nowadays.<\/p>\n<p>It turned out, that while compiling the swift files with that quote char in the file name did work, it did not work for the copypng perl script.<\/p>\n<p>We changed the directory name and all went well a second later.<\/p>\n<\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>From time to time we have pupil interns. Our last intern, let&#8217;s call him John started some Xcode Swift programming and all was fun and great. After more than a week of successful programming small pieces of this and that he created a png picture file using the gimp editor. He then pulled the file &hellip; <a href=\"https:\/\/www.small-apps.com\/de\/2015\/01\/xcode-project-breaks-after-png-added\/\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eXcode Project breaks after png added\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1162","post","type-post","status-publish","format-standard","hentry","category-apt-app-programming-tipps"],"_links":{"self":[{"href":"https:\/\/www.small-apps.com\/de\/wp-json\/wp\/v2\/posts\/1162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.small-apps.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.small-apps.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.small-apps.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.small-apps.com\/de\/wp-json\/wp\/v2\/comments?post=1162"}],"version-history":[{"count":6,"href":"https:\/\/www.small-apps.com\/de\/wp-json\/wp\/v2\/posts\/1162\/revisions"}],"predecessor-version":[{"id":1172,"href":"https:\/\/www.small-apps.com\/de\/wp-json\/wp\/v2\/posts\/1162\/revisions\/1172"}],"wp:attachment":[{"href":"https:\/\/www.small-apps.com\/de\/wp-json\/wp\/v2\/media?parent=1162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.small-apps.com\/de\/wp-json\/wp\/v2\/categories?post=1162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.small-apps.com\/de\/wp-json\/wp\/v2\/tags?post=1162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}