Eyzuky
Eyzuky

Reputation: 1935

Files are not in project navigator eventhough project compiles and can search for them

The problem started when I got into the project and saw I have no scheme. Couldn't create new scheme except for the cocoa-pods target. Then I went into my project via finder, and noticed that the project was backedup into the iCloud, and when downloaded it it appeared in the schemes and ran fine.

So I am with this project for a while now, started it in xcode 9 and already released a few versions to the store. Today I open the project for more developing, and I notice that I cannot see the files in the navigator. If I search for them I can go into them and edit. If I am running it, it builds and runs perfectly. Only problem is that I cannot navigate between files, and cannot find the storyboard in the search, so cannot open it at all. I tried -

But still cannot see the files in navigator. Screen shot of navigator added:

enter image description here

Upvotes: 1

Views: 175

Answers (1)

Sandeep Bhandari
Sandeep Bhandari

Reputation: 20379

As per our discussion in comments above I am adding the comment as answer, you can try deleting the xcuserdata folder inside .xcodeproj and re-run the pod install to solve the problem.

In order to do that, go to your .xcodeproj right click and select show package contents

enter image description here

Once it opens the finder window with contents inside it, simply delete the xcuserdata folder

enter image description here

Now get back to your project root folder in terminal and run pod install once done open the project using workspace.

That should solve your problem :)

Happy coding:)

Upvotes: 1

Related Questions