Xcode 5 source syntax not working for unit test file

I have a unit test setup for my project. I initially got stuck in errors while compiling a test file, finally I solved it and my tests now work.

Now the problem is that the syntax highlighting does not work for the test file, only for this. I tried to execute this answer to solve this problem, but no luck. Deleting the received project data worked once, but then I closed xcode, and when I opened it again, there was no syntax highlighting again. I also reinstalled xcode 5 from the App Store 2 days ago, so this should be a new new installation. Can you help me?

+2
source share
1 answer

For me, this problem disappeared when I added a test target to a test action in the Scheme editor (Product-> Scheme-> Edit Scheme ..).

See the image on this post:

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

+2
source

Source: https://habr.com/ru/post/1617039/


All Articles