Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why in iOS Framework, xctest is always red colour?

I'm trying to make a new framework to use in my other project. I know if it is red colour means can not find to the path of the file. But this not a file I created!

What I don't understand is why my new framework with pretty much nothing inside is always red colour. I even run test cases (default). I appreciate if anyone can help me to fix this:

enter image description here

like image 693
Bernard Avatar asked Mar 03 '16 03:03

Bernard


People also ask

Why are frameworks red in Xcode?

The red text indicates that the actual files are not at the path that the project has for them. Get info on the framework and look under the General tab. The first section shows the name and path of the framework bundle itself.

What is XCTest in IOS?

Overview. Use the XCTest framework to write unit tests for your Xcode projects that integrate seamlessly with Xcode's testing workflow. Tests assert that certain conditions are satisfied during code execution, and record test failures (with optional messages) if those conditions aren't satisfied.


1 Answers

No, Scheme(not schema) is different from Target. Check out this thread for better understanding Xcode: What is a target and scheme in plain language?

To solve your issue, click on the WSBandKit framework icon on top left section(adjacent to iPad2 simulator icon); and select editScheme option from drop down. You will be presented with a new screen with some option. Go to Build option and tick the option of Run for your test target. Close the screen and Build the framework for Device. Check the image for reference. Initially the Run option will be unchecked for test target that you have to check. enter image description here

like image 113
Gandalf Avatar answered Oct 29 '22 02:10

Gandalf