I am writing the Unit test cases for the App Extension. The App Extension target is a combination of Swift Code + Objective Code. I just followed the below steps after creating the unit test target for the schema (The app target to be tested)which points out to the App Extension target in the XCode.
- Select you extension test target in Project settings
- Go to Build Phases
- Expand Compile Sources
- Click +
- Add source files with your testable code.
- Build for Testing
When I try to build the unit test target from the XCode. I am seeing the below error
Cannot find interface declaration for 'XCTestCase', superclass of 'TunnelTests'
Please provide help to overcome this Blocker.