After adding Mocker via SPM, I spend hours trying to figure out why XCTest and XCTestSwiftSupport didn't link. Wanted to save others pain and added instructions to update Build Options, ENABLE_TESTING_SEARCH_PATHS to YES.
Note, this resolves linking errors in run/debug. Errors will persist if Mocker is included in archive/release. Up to user to resolve, and I assume user would exclude Mocker in archive/release.
After adding Mocker via SPM, I spend hours trying to figure out why XCTest and XCTestSwiftSupport didn't link. Wanted to save others pain and added instructions to update Build Options, ENABLE_TESTING_SEARCH_PATHS to YES.
For reference found the proposed solution here https://forums.swift.org/t/the-error-cannot-find-auto-link-library-xctest-and-xctestswiftsupport/34785
Note, this resolves linking errors in run/debug. Errors will persist if Mocker is included in archive/release. Up to user to resolve, and I assume user would exclude Mocker in archive/release.