I\'m trying to use Swift 2\'s new @testable declaration to expose my classes to the test target. However I\'m getting this compiler error:
I started getting this error when running tests using Bitrise.
Unlike other users says, this is not per Target basis, or per Schema basis, it is per Configuration basis.
Select Target -> Build Settings tab -> look for testability -> Enable it on the Configuration that you are using.
Please notice that Apple recommends to enable this on the configuration that you are using for debugging, not for AppStore.