简体   繁体   中英

In Xcode 8.3 some swift class files are in red colour

在此处输入图片说明

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?

只需再次在XCode中拖动此文件或通过单击XCode左下角的+按钮添加这些文件的引用,然后单击“添加文件”。

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM