{"id":2547,"date":"2016-09-14T15:49:05","date_gmt":"2016-09-14T22:49:05","guid":{"rendered":"http:\/\/www.wellgolly.com\/?p=2547"},"modified":"2016-09-14T15:49:05","modified_gmt":"2016-09-14T22:49:05","slug":"xcode-error-finder-information-or-similar-detritus-not-allowed","status":"publish","type":"post","link":"https:\/\/www.wellgolly.com\/?p=2547","title":{"rendered":"Xcode Error: Finder information, or similar detritus not allowed"},"content":{"rendered":"<p>I haven\u2019t updated my apps lately and I thought I\u2019d see how much work it would be to update to Xcode 8. Well, there is a lot of deprecated code in my apps, since I am still compatible with iOS 5.1.1. I fixed the easy ones but there are still 48 issues left. However, the apps won\u2019t compile now because of this error:<br \/>\nFinder information, or similar detritus not allowed<\/p>\n<p>The error message indicated that the file in question is:<br \/>\n\/Users\/username\/Library\/Developer\/Xcode\/DerivedData\/Words-boikejhzvtrlltffksnstzlbjcpf\/Build\/Products\/Debug-iphonesimulator\/AppName.app<\/p>\n<p>But that is a package, so the problem must be in a file somewhere in there.<\/p>\n<p>Fortunately, this is an error that others have <a href=\"https:\/\/forums.developer.apple.com\/thread\/48905\">encountered<\/a> and there is a solution.<\/p>\n<p>First cd to the above named directory and run the following code to find all of the files in the director that have extended attributes.<br \/>\n<code class=\"preserve-code-formatting\">ls -al@ *<\/code><\/p>\n<p>When I ran it I had a bunch of files that have an @ at the end file permissions section. In my case they are all images\u2014in fact all of them are app icon or launch images. My other images are fine.<\/p>\n<p><pre><code class=\"preserve-code-formatting\">\n-rw-r--r--@ 1 username&nbsp;&nbsp;staff&nbsp;&nbsp; 153369 Jan 12&nbsp;&nbsp;2013 AppName LaunchImage-Landscape~ipad.png\n&nbsp;&nbsp;com.flyingmeat.Acorn.lastScale&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;com.flyingmeat.Acorn.selectedLayerId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 36\n-rw-r--r--@ 1 username&nbsp;&nbsp;staff&nbsp;&nbsp;&nbsp;&nbsp;11122 Mar&nbsp;&nbsp;9&nbsp;&nbsp;2013 AppName AppIcon72x72@2x~ipad.png\n&nbsp;&nbsp;com.apple.FinderInfo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32\n&nbsp;&nbsp;com.apple.quarantine&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 60\n-rw-r--r--@ 1 username&nbsp;&nbsp;staff&nbsp;&nbsp;&nbsp;&nbsp; 3958 Sep&nbsp;&nbsp;4&nbsp;&nbsp;2013 ShowMe AppIcon40x40@2x.png\n&nbsp;&nbsp;com.apple.metadata:kMDItemWhereFroms&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;169\n<\/code><\/pre><\/p>\n<p>The files for this project are all in the Words directory so I recursively removed the attributes from all of the files. Thanks to cwd at <a href=http:\/\/stackoverflow.com\/questions\/4833052\/how-do-i-remove-the-extended-attributes-on-a-file-in-mac-os-x#4833168\">StackOverflow<\/a> for the info on how to do it. I have tens of thousands of files, so it took a while.<\/p>\n<p><code class=\"preserve-code-formatting\">xattr -rc \/Words<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I haven\u2019t updated my apps lately and I thought I\u2019d see how much work it would be to update to Xcode 8. Well, there is a lot of deprecated code in my apps, since I am still compatible with iOS 5.1.1. I fixed the easy ones but there are still 48 issues left. However, the &hellip; <a href=\"https:\/\/www.wellgolly.com\/?p=2547\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Xcode Error: Finder information, or similar detritus not allowed<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-2547","post","type-post","status-publish","format-standard","hentry","category-ios"],"_links":{"self":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/2547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2547"}],"version-history":[{"count":0,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/2547\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}