Is there no way to quickly copy/consolidate all files outside of project folder? - xcode

I've been dragging a few assets into my project in Xcode, and while I know you can check that box for 'copy items if needed', that doesn't always show up and so I end up with files that are located in scattered locations on my hard drive. I know I could manually put the files in the project folder, but is there no way to automatically copy external files to an internal location?

Related

Add folder in project setup

How to add new folder in vb6 project? I have a form and form uses some images now i want to move all the images under the folder images under the project in vb6 ? and later will reference the images from this folder.
You cannot do it in the VB6 GUI. It has a fixed layout - remember it is 15 years old and things (and projects in particular) were much simpler.
You can however have the files themselves in different folders. You can create subfolders on disk and move the files into there. 'Save As..' may work for the individual files. If you want to do quite a lot of files:
Start a new project
Distribute the files into the folders you require
Use 'Add Files' to add the files from each folder.

Adding a folder to Xcode project

I have a folder full of files on my iPhone app which I want to use, but Xcode will not let me add folders to the bundle, only its files. I can't do this because I want it to be a bit more convenient, so I can reference the folder in my code. So, how do I do this? The compile settings in the build targets won't let me add the folder, only its files.
Drag the source folder to the project "Groups & Files" area, say under the Resources group. In the dialog select "Create Folder References for any added folders". This will create a blue folder and the folder will and it's inter hierarchy will appear in the apps resources. This will automatically create an entry in "Copy Bundle Resources" build phase This is commonly done for image & help files. Any changes made to the folder will also change the files included by Xcode.
Note the important thing here: the folder must be a Folder Reference (blue folder). If it's a group (yellow folder), delete it and all its contents from your project tree, then re-add as a Folder Reference. Then make sure that's in the Copy Bundle Resources build phase. – cdespinosa

How to create folder within project

I want to have all my image files in a folder so that I can obtain all of them at the same time. I think the path should like this ...MyApp.app/image folder/1.png.
But when I drag them into xcode with folder references created, there is no folder. The path is always MyApp.app/1.png.
Also, I think I've dragged the files into the app several times. How to delete the files? It's not enough to just delete the references.
If they are not visible in project navigator, that means that you have no references to them and you can delete them directly in finder.
You are likely to have moved every image to a group rather than a folder. A group is just a convenience in Xcode project navigator. It has nothing to do with file hierarchy.
To keep them in a folder, right-click project navigator. Select new folder, drag your files to that folder. When they are visible in your project navigator, make sure that they are all linked to your project. I.e they are all check market with your project in the right pane.
It important to drag them to the folder and not just outside of it.
Here's the easiest way to do this in Xcode:
1)
Put all your images into a folder and then drag that folder into the list of files in your Xcode project. That step looks like this:
2)
A sheet will drop down in Xcode and ask you how you want to add these files to your project. It looks like this:
There's a checkbox at the top there that says "Copy items into destination group's folder (if needed). You will check this if you want to copy your folder full of images into the same place where your source code is found in your Xcode project.
3)
When you're done adding, here is what your project should look like in Xcode. Notice that the folder color is blue. That means it's a folder reference. This folder will be copied into your built application.

How to copy a file into xcode project but not to the root folder

When dragging a file into the project explorer in xcode, you are asked if you want to copy the files into the project if needed. if you check that box the file is copied into the root folder of the project.
is there any way to explore where you want to copy the files into, i mean, is it possible to copy the file into subfolders of the root folder?
Dragging files in you will usually copy them to the project resources folder.
If you want to be able to access them from your app, you might be better adding the files to the mainbundle or documentation folders.

.NET MVC3 - Folders Within /Content Folder Missing When Publishing WebSite

I have a folder in my /Content folder which is not being included when I build and publish my website. Only the standard CSS, Images, Scripts and themes folders have been included. I also have a Downloads folder containing .doc files that has not been included.
Am I limited to the standard set at the level below /Content?
Empty folders typically don't get deployed.
For the Downloads folder, what's the "Build Action" set to for the items that it contains? They should be set to "Content" for anything that you want deployed. This isn't automatically set for some file types, such as PDF, etc.
The only items that get deployed have to be both referenced in the project (that is, they have to appear in the solution explorer, not just present in the folder on disk)
, and have the correct build action set.
You might also set the "Copy To Output Directory" setting to True and see what happens.
In Visual Studio, right click on every folder underneath /Content folder, and choose Include In Project. Else, the files are only physically there on disk but the project doesn't know they are there and doesn't publish them.

Resources