Import XCTest in to existing project

前端 未结 1 663
别跟我提以往
别跟我提以往 2020-12-30 13:41

I added a new target as a Cocoa Touch Unit Testing Bundle, named the directory \"MyAppTests\", and the actual framework is not active-- it is highlighted red

相关标签:
1条回答
  • 2020-12-30 14:15

    XCTest.framework is the bundle that Xcode uses to enable

    #import <XCTest/XCTest.h>
    

    To add test cases to an existing project select the target, right click > file > new > objective c test case class. Then in your build phases you can add the XCTest.Framework. Make sure you check the add to target boxes when creating the test case.

    0 讨论(0)
提交回复
热议问题