Code loses syntax color in Xcode 4

前端 未结 4 948
暗喜
暗喜 2020-12-24 03:56

I have just upgraded to the new Xcode 4 and the code is not colored has it ought to be.

For instance, the string NSString is not colore

4条回答
  •  囚心锁ツ
    2020-12-24 04:30

    I used undefined Macro, But those macros defined in Preprocessor Macros in build settings. So the xcode4 didn't generate any error for that undefined macro.

    Steps taken to resolve.

    1. Removed undefined macros wherever I used those undefined macros.
    2. Removed duplicate definitions of Marcos.
    3. Removed duplicate Resources. (I'd added same (many Thumbs.db files) files into the project.)
    4. Clean & Build.

    if still you are not getting the color then, please relocate your project to some different location, I changed to my Desktop location.

    After these steps I got the color in my eyes.

    But its very bad issue. I sucks lot of valuable time. I think these steps may help you.

    Thanks.

提交回复
热议问题