xcode 5 syntax highlight not working for unit test file

我只是一个虾纸丫 提交于 2019-12-08 02:21:26

问题


I have setup a unit test for my project. Initially i got stuck with errors during the compilation of the test file, finally i solved it and my tests now are working.

The problem now is that the syntax highlight is not working for the test file, only for that. I tried following this answer to solve this issue but no luck. Removing the derived data of the project worked one time but then i closed xcode and when i reopened it there was no syntax highlight again. Also i have reinstalled xcode 5 from App Store 2 days ago so this should be a fresh new install. Can you help me?


回答1:


For me this issue went away when I added my Test target to the Test action in the Scheme editor (Product->Scheme->Edit Scheme..).

See the picture at this post:

http://www.stewgleadow.com/blog/2011/10/30/adding-unit-tests-to-an-existing-ios-project/



来源:https://stackoverflow.com/questions/22507850/xcode-5-syntax-highlight-not-working-for-unit-test-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!