I moved a Swift class declaration from one file to another and now Xcode 8.2.1 keeps nagging me with red errors "Use of undeclared type" wherever I use this class. The project does compile & run without errors, but when I edit the code the error messages pop up again.
I already
Is there anything else I can do to get rid of these messages?
The solution is to include the new file that you moved your class to in your test target.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With