Xcode 8.1 There is no module "Foo" from unit tests

I upgraded from Xcode 7.3.1 to Xcode 8.1 and selected the Swift 2.3 transition. Now my unit tests will not compile, it does not work on import , in particular No such module 'Foo' , where Foo is the name of the module.

Enable Testability is already set to Yes. I have a "Use Legacy Swift Language Version" set to "Yes" for the project and purpose. I tried to clean, remove DerivedData and rebuild.

+1
xcode swift swift2 xcode8
Dec 11 '16 at 16:39
source share

No one has answered this question yet.

See similar questions:

135
"No such module" when using @testable in Xcode Unit tests

or similar:

135
"No such module" when using @testable in Xcode Unit tests
81
A module compiled using swift 3.0 cannot be imported into Swift 3.0.1
42
Swift 3 / Xcode 8 Upgrade - 100 DerivedData files missing from working copy errors
7
There is no such module ... in Xcode
7
Unit tests for Swift and Objective-C files
6
Xcode 6.4 Swift Unit Test Cannot compile: "GPUImage.h not found" "Could not import bridge header"
6
Missing code completion or syntax highlighting in Xcode Unit Test Target with "Defined Module" enabled
2
No such module <product module name> in Xcode Unit test
0
"Use legacy version of Swift language" could not be found in Xcode 8.1
-one
I am compiling a Swift 2.3 project and have this problem on Xcode 8.1



All Articles