I have been trying for a couple of days now to get started on building unitests for my Swift 3 IOS project in Xcode.
when ever I try to import a class from my project I get an error "No such module".
I have tried many different steps including the following in multiple differnet combinations and I still have not been able to import my classes from my project into the test frame work. Since my project uses CocoaPods (and there are multiple issues there alone) I tried to isolate the problem with a test project that does not use PODS with no success. I get the same result.
- enabling "Defines module"
- setting up a module map file
- including the module map file in the Swift import paths
I though that maybe my problem might be because I have object derived from NSOBjects, but even with a regular swift class, I cannot get any class defined in my project to be recognized inside the test frame work.
I have been able to get the app recognized with the @testable option on the import line, but no matter what I do I cannot get any class defined in my project to import into the test frame work
Obviously I am doing something wrong? When you create a new swift 3 project, what steps do I need to do to enable testing?
If I have an existing swift 3 project, how do I make sure that unit testing is properly enabled?
I am really confused at this point and I could really use a step by step guide