Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After upgrading from Xcode 5 to Xcode 6.0.1 XCTest.framework and MyAppTests.xctest are displayed in red

In OS X 10.9.5 i upgraded from Xcode 5.1.1 to Xcode 6.0.1 (via the App Store). Now in my project XCTest.framework and MyAppTests.xctest are displayed in red letters:

XCTest.framework in red

Still the tests seem to run without problem. What does the red color mean, how can i fix the problem?

Note: I did see this question, but as it is not related to an Xcode upgrade it describes only a similar symptom but it may have a different cause and solution.

like image 407
MartinW Avatar asked Sep 22 '14 10:09

MartinW


1 Answers

Red letters mean Xcode cannot find the corresponding file in the filesystem.

Why is XCTest.framework displayed in red?

The framework does not reside in the same location in Xcode 6.0.1 as it used to in Xcode 5.1.1
It has moved from:

/Applications/Xcode.app/Contents/Developer/Library/Frameworks/XCTest.framework 

to:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCTest.framework

Why is the MyAppTests.xctest product displayed in red?

I created a separate Test Configuration in Xcode in order to avoid sandboxing problems as described here: http://marcschwieterman.com/blog/testing-in-the-sandbox/ . As a result, tests get built in their own location and no longer in the debug location as before. But the location of the MYAppTests.xctest product is not automatically updated by Xcode, nor could i find a way to update it manually to the new location.

like image 123
MartinW Avatar answered Sep 30 '22 05:09

MartinW