'Module was not compiled for testing' when using @testable

ENABLE_TESTABILITY = YES


is set to YES in debug, not in release, but if I have a scheme that compiles a release build of my framework (who also build the test target) build will fail with


'Module was not compiled for testing' when using @testable


in release mode ENABLE-TESTABILITY is set the NO


caused by @testable import inside test target


@testable import Awesomekit
Answered by sync in 9507022

solved by making sure the framewok scheme tests target has only "Test" checked in and no "Run"

Accepted Answer

solved by making sure the framewok scheme tests target has only "Test" checked in and no "Run"

'Module was not compiled for testing' when using @testable
 
 
Q