How to update Project Navigator content in Xcode?

I cannot update the list of files in Project Navigator. There is no refresh button, and I don't think restarting Xcode should be the solution.

How do you see the files you add from the outside? I am on a Mac.

+25
xcode
Sep 17
source share
3 answers

How do you see the files you add from the outside?

Files cannot be added externally. Dropping the source file into the project directory does not add it to the project. To add a file, you must add it to the project from Xcode.

If you have a bunch of files that you need to add, then in the "Add File" dialog box, you can immediately select all the files you want and add them without opening the "Add File" dialog box. Just use the control to select multiple files.

+16
Sep 17 '12 at 7:55
source share

If necessary, close and reopen the project.




This may be required if you use folder links (as an example). In this case, touch in the directory may work to update the contents of Xcode.

+10
Sep 17 '12 at 7:10
source share

For a single file, you can open an external file in Xcode and cmd + s , to save it, it will be updated in Xcode.

In addition, for quick access, you can simply select the external folder in Xcode and cmd + s , it will update your entire external file in this folder.

+2
Dec 13 '13 at 4:04 on
source share



All Articles