WeTransfer / Mocker

Mock Alamofire and URLSession requests without touching your code implementation
MIT License
1.12k stars 96 forks source link

Updated README.md to resolve build errors #71

Closed ericpassmore closed 4 years ago

ericpassmore commented 4 years ago

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.