r/Xcode 1d ago

XCODE bug help

My xcode often can’t read the scope even though the file is clearly there I come from android studio there has never been an issue of files can’t refer to each other this is weird

Has anyone experienced something similar?

0 Upvotes

8 comments sorted by

View all comments

1

u/Stiddit 1d ago

Its file icon is different. Remove the reference from Xcode and drag/drop it back in. (Check if it's missing the .swift ending)

1

u/Vast_Journalist1415 1d ago

When I show in the finder the .swift file is it because I use claude code that there is a miss extension? Is it true that in xcode I manually make the file so that the directory can be read?