The build of "ColiseuPlayer" using Carthage is failing with error: module 'ColiseuPlayer' was not compiled for testing @testable import ColiseuPlayer
. The build is working if I build it directly from Xcode. Does anyone have a clue of what might be the issue?
For more context, you can see the error by using the code from ColiseuPlayer Release-1.0.0 branch and build it using Carthage: carthage build --no-skip-current
.
I found out what was wrong.
Just turn off the "Run" flag from the Target:
Carthage builds the Release configuration with ENABLE_TESTABILITY=false
which causes tests target build to fail.