Archive/Log

[Xcode] Could not find or use auto-linked library 'XCTestSwiftSupport' / warning: Could not find or use auto-linked framework 'XCTest' 오류 발생

Marco 2022. 5. 31. 17:03
728x90

프로젝트 생성 후 TDD라는 거창한 계획을 떠올리며

Nimble과 Quick을 추가해보았다.

 

먼가 순수 Xcode 프로젝트를 깨기 싫어서 SPM으로 추가했는데..

이런 문제가...

 

다행히 https://forums.swift.org/t/the-error-cannot-find-auto-link-library-xctest-and-xctestswiftsupport/34785/4

 

The error cannot find auto-link library XCTest and XCTestSwiftSupport?

In my case settings ENABLE_TESTING_SEARCH_PATHS to YES fixed the issue.

forums.swift.org

동일한 문제에 대한 해결방법을 제시 해주었다..

다음과 같이 Enable Testing Search Paths 값을 Yes로 바꾸니 해결되었다.

 

Xcode Version : 13.4

 

728x90