Pawan Joshi
Pawan Joshi

Reputation: 1579

Xcode 5.1.1 is not showing colored syntax for new added files?

I am using Xcode 5.1.1 and came across this weird problem.

When i add new files in Xcode, these files do not have the colored syntax, and auto complete doesn't work (in only these files, already existing files are ok).

I have tried solutions on these previously asked questions (deleted DerivedData from organizer)

Question 1

Question 2

And it got even worse.... now even the already existed files stopped showing syntax in colors.

What should i do to make it work again?

Upvotes: 0

Views: 436

Answers (1)

Dev_Dash
Dev_Dash

Reputation: 376

I think you didn't validate your project to new settings. you should look into the list of warnings. there will be a warning about validating project settings.

I came across the same problem and updating to new settings solved it.

And also if you deleted previously added files. don't add them back. they won't have the syntax coloured. instead make a new class with a different name and copy the code from the original class. I don't really know, why this happens but this will solve your problem.

Upvotes: 1

Related Questions