.DS_STORE files in app

So, finally been doing builds for iOS devices and took a look inside the app file to see how everything looked in there, and I noticed that there were .DS_STORE files in the app.

Can those be removed? I am using the latest public release and haven’t checked one of the new daily builds. I saw an old thread on this that I think mentioned that these files should not be included, but it was kind of left open-ended.

So any ideas? [import]uid: 17827 topic_id: 28234 reply_id: 328234[/import]

I’ve asked that no hidden file (i.e. beings with a dot, like .svn, .DS_STORE, etc.) be included in the compiled bundles and .apk files,.

I don’t know where that is on the list or if Corona Lab’s ever got the information.
[import]uid: 19626 topic_id: 28234 reply_id: 114070[/import]

.DS_Store are files that Finder creates (Mac OS X) when you browse a folder. Notice that Finder remembers the size of your window, where the window is positioned, which view mode (icon, column, coverflow), etc. on a per-directory basis. Writing a different .DS_Store to every directory is how Finder pulls this off.

The files are generally harmless, though sometimes annoying to see for other other operating systems that don’t hide the .DS_Store files from viewing. We probably shouldn’t be shipping any .DS_Stores with our stuff (except for the DMG which is how we do the background art and control the icon layout). But if they are sneaking in, they should be harmless. If there are specific ones people have found, I would like to know. But if you are seeing them, you need to be aware that you may have inadvertently created them yourself (and it wasn’t us) by using Finder.
[import]uid: 7563 topic_id: 28234 reply_id: 114129[/import]

Thanks, ewing, for the comment.

I am aware of what the file is used for. And I know that Finder creates them. It just seems an odd thing for you all to be packaging up in the app. Obviously, there is no reason for it to be in the app, as it is for Finder use only.

For me, when I do a Build for iOS, it is including the .DS_Store file for each of the folders in my project, both the main project folder and the Assets subfolder (and subfolders within).

Is it possible to manually delete the file without causing a problem with submitting it to Apple? Haven’t tried that, so just wondering… [import]uid: 17827 topic_id: 28234 reply_id: 114132[/import]

Our build process is automated with very little GUI involved. That’s why I think it is unlikely we are injecting .DS_Store files into the builds. However, we may not be sanitizing your project files and blindly copying over the files (and apparently other files like .svn) so any .DS_Stores in your project folders, you could try removing them before doing a build.

For deleting them after the fact, I don’t know if that will work. In theory, the only thing that matters is the code signing. So if you can remove the files in a way that doesn’t break the code signing, then you are probably good. Building for your local device has to be code signed too so if you can successfully build/install/run onto a test device, then it will work. [import]uid: 7563 topic_id: 28234 reply_id: 114135[/import]

Yeah, I am not up on the code signing process, so figured I would ask.

I will try deleting the .DS_Store files before building, though I think the way that Finder works is that if I delete them, it will just create them again, so not sure that will really have the desired effect. :slight_smile:

I didn’t believe that your process was causing their creation, just that it would copy over hidden files as well. Maybe your build process should just not include files that are marked as hidden. Seems a logical thing to me. [import]uid: 17827 topic_id: 28234 reply_id: 114136[/import]

I’m personally not all that concerned about the .DS_Store folder since it isn’t that big, but our .svn folders and other things, like the Cider debugger drop hidden files that probably shouldn’t end up in the bundles and apks…

[import]uid: 19626 topic_id: 28234 reply_id: 114137[/import]

I just think it looks unprofessional to have a bunch of needless files in there. While .DS_Store files don’t occupy much space (whereas Subversion files likely would), it just seems like one of those things that just seems like something that should be done: don’t include hidden files into the builds. [import]uid: 17827 topic_id: 28234 reply_id: 114138[/import]