Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4 shows no files after loading project

Tags:

I've loaded a project in Xcode 4 after not looking at it for a while. Xcode shows its progress bar and indicates in text that the project is loading, and it appears to finish, but then there are no files shown in the hierarchy or flat views. There is nothing showing in any view (except for one breakpoint in the breakpoints view).

Any ideas? Xcode gives me zero indication that anything is wrong, it shows me nothing.

like image 767
Ben Collins Avatar asked May 13 '11 19:05

Ben Collins


People also ask

How do I add missing files to Xcode?

Select all the missing files that are in one folder in Finder. Click the choose file button; it is under the Location drop down menu; it is an image that looks like a very small window with a document inside it. A Choose folder containing the selected references sheet should appear. Show activity on this post.

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 add files to Xcode project?

I include them in the project by right-clicking on the project folder in the project view in Xcode, and selecting "Add Files to ...". I then navigate to the folder containing the source files, click on the folder and select "Add." With the options "Create folder references" and "Add to target [target name]".

Where is the Xcworkspace file?

xcworkspace file corresponds to a “workspace” created in Xcode via File > New > Workspace... . You can open them in Xcode, just like you can open projects. But it's not actually a file, it's a directory. Only Finder attempts to confuse you by displaying directories with this extension as files.


2 Answers

I just had the same issue. After a few hours scratching my head and trying all kind of things, I finally found a fix: remove the whole package 'project.xcworkspace' inside the XXXXX.xcodeproj package.

More specifically, when you find the 'XXXXX.xcodeproj' file, right-click it, and select 'Show Package Contents'. This will get you inside the package where you will find the 'package.xcworkspace' file. It is best to do this while the Xcode project is closed.

Maybe that will work for you or for others with the same issue in the future...

like image 55
charles Avatar answered Nov 16 '22 23:11

charles


Some of the project views have the "Recently Changed" filter icon. For me the problem was: i had that enabled in the Project Navigator, so it was only showing the files i recently changed. It looks like this. enter image description here I'm using Xcode 6.1 though.

like image 38
FranticRock Avatar answered Nov 16 '22 22:11

FranticRock