iOSDude
iOSDude

Reputation: 294

In Xcode 8.3 some swift class files are in red colour

enter image description here

I haven't done anything. I just copied into another folder. When I run this code everything is working fine but don't know why some Swift class files are in red colour. Can someone please suggest me a solution?

Upvotes: 0

Views: 975

Answers (3)

iOSDude
iOSDude

Reputation: 294

I solved this red colour issue by re-adding those class files and i deleted these red colour classes. I Think it's because of the path issue.Solved by readding.

Upvotes: 0

Bikramjit Singh
Bikramjit Singh

Reputation: 218

Import these red colored classes from another folder or backup folder to your current project.

To sort this issue permanently open your project folder and move these classes to main project folder.

Upvotes: 1

Abhishek Jain
Abhishek Jain

Reputation: 4739

Just drag this files again in XCode or add reference of those files by clicking on + button on bottom left corner of XCode and then click on 'Add files'.

Upvotes: 1

Related Questions