# XCTest Swift, since XCode 12.5 not usable, error: cannot find 'XCTAssertEqual' in scope

**URL:** https://discourse.cmake.org/t/xctest-swift-since-xcode-12-5-not-usable-error-cannot-find-xctassertequal-in-scope/6432
**Category:** Usage
**Created:** [September 7, 2022, 8:06pm UTC](https://discourse.cmake.org/t/xctest-swift-since-xcode-12-5-not-usable-error-cannot-find-xctassertequal-in-scope/6432 "2022-09-07T20:06:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![a4z](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/a/958977/32.png) [@a4z](https://discourse.cmake.org/u/a4z)
#### Post date: [September 7, 2022, 8:06pm UTC](https://discourse.cmake.org/t/xctest-swift-since-xcode-12-5-not-usable-error-cannot-find-xctassertequal-in-scope/6432/1 "2022-09-07T20:06:39Z")

</div>

Hi,

I have some Sift code that I build and test with CMake  
Since XCode 12.5, there has been an issue that the compilation of my XCTest does not work anymore.

The build stops with `error: cannot find 'XCTAssertEqual' in scope`

There is a notice at the end of the release notes of XCode 12.5 about some test removemnt.  
[https://developer.apple.com/documentation/xcode-release-notes/xcode-12\_5-release-notes](https://developer.apple.com/documentation/xcode-release-notes/xcode-12_5-release-notes)

In XCode, people can set `ENABLE_TESTING_SEARCH_PATHS` , and that shall fix the problem.  
But I can not figure out how to do that in CMake,

Example project can be found here, as soon as I add the test sub folder, I get the error

> <https://github.com/a4z/swiftcpp-example/actions/runs/3010260531>

Any way to get testing into my code with CMake ?
