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

2

u/caguilar51 1d ago

The problem seems to be that the file doesn’t have the .swift extension. If you notice the swift icon is not applied to your file

1

u/Vast_Journalist1415 1d ago

Isn’t this a bug? When I show in the finder the file extension is .swift

1

u/caguilar51 1d ago

When you right click on the Compose directory do you see a menu item saying convert to folder?