“No such module” when using @testable in Xcode Unit tests

Please check your Module Name that you try to import with @testable import "ModuleName". The module name should be the same on Target->Build Settings-> Product Module Name

Leave a Comment