Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Project Files not appearing in Project Navigator

Tags:

xcode

ios

swift

Strange problem here...my project's Swift files, Main.Storyboard, additional images, delegate, etc. files are all missing from Xcodes Project Navigator.

What is really strange is that the project builds fine and I can also select them from the top of the main editor window even though they are not displayed on the left in the Project Navigator.

When I open my project, the files appear for about 1/2 a second, and then the list is condensed to the blue target file at the top and about 7 images. (I cannot post a picture because my reputation is not high enough.)

I've quit and reopened Xcode and also performed a few restarts, but I still can't select them...even though they're apparently there! Any ideas?

like image 816
jwade502 Avatar asked May 24 '15 21:05

jwade502


People also ask

How do I refresh project navigator Xcode?

For a single file, you can open the external file in Xcode and cmd + s to save it, it will be refreshed in Xcode. Also, for the quick way you can just chose the external folder in Xcode and cmd + s , it will refresh all your external file in this folder.

Where is my Xcode project file?

Overview. The Project navigator displays your project's files and lets you open, add, delete, and rearrange those files. To open the Project navigator, at the top of your project window's navigator area, click the icon that resembles a file folder.

How do I see all files in Xcode?

Press and hold the ⌘ + shift and . keys at the same time. Then you can switch to view hidden/non-hidden files.


3 Answers

For me the issue was different. My search bar was empty but I had mistakenly selected the clock icon in the search bar at the bottom of the navigator.

Unselected it looks like this

enter image description here

Selected it look like this

enter image description here

The clock icon filters the files for files that have been recently used and therefore, hides a number of your files.

like image 172
jonthornham Avatar answered Oct 02 '22 13:10

jonthornham


May be you need check the Project Navigator's bottom, there is a search bar.

If the search bar had some keywords, the Project Navigator would only show the files which file's name contain the keyword(s), and you can't clear the keyword by only reopen Xcode.

When you open Xcode, Xcode will initial the search bar with nothing and you can see the complete files, after initial had done, Xcode will load last close time's state for the search bar and filter files, so that's why When I open my project, the files appear for about 1/2 a second.

like image 36
beimenjun Avatar answered Oct 02 '22 14:10

beimenjun


enter image description here

Untick this timer icon at the bottom of navigator in case you have selected it

like image 43
Shubham Goel Avatar answered Oct 02 '22 13:10

Shubham Goel