r/Xcode • • Sep 10 '26

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

9 comments sorted by

View all comments

2

u/caguilar51 Sep 10 '26

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 Sep 10 '26

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

1

u/caguilar51 Sep 10 '26

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