Why the Resources direrctory is not visible on my project navigatior

90 Views Asked by At

I just started learning SwiftUI and trying to follow the steps of the Building lists and navigation example from Apple. Although copied and existing on the project directory, I noticed the Resources directory is not visible in my project navigation on Xcode.

The build is successful, but since the app tries to read landmarkData.json file from that directory, it throws:

Could not find landmarkData.json in main bundle.

Why doesn't the Resources show up on Xcode? How can I fix this issue?

Thank you so much

1

There are 1 best solutions below

1
On BEST ANSWER

Here's some things you can verify :

1

  • Verify if the clock is selected in the search bar. If so, de-select it.

  • Try deleting the Ressources folder in your projet files. Then, drag and drop it in your files navigator (left panel in xcode).