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
Here's some things you can verify :
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).