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:
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With