'Failed to load module 'project name'
I added unit test target to my existing project, but while @testable import Product_Module_Name
getting error "Failed to load module 'Product_Module_Name'".
I tried https://stackoverflow.com/a/58164638/17664589 but it is not working.
Solution 1:[1]
Click on scheme -> Edit scheme -> select Test -> under info select Build configuration for which Enable testability is Yes. this solved my issue.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | jkDev 557 |