I have a swift protocol IModelIdProvider
in the MyProjectName
folder.
I have created an objective-c unit test class named RemoteModelFactoryTest
in the MyProjectNameTests
folder.
To do some tests, RemoteModelFactoryTest
must implement the IModelIdProvider
protocol.
When I #import "MyProjectName-Swift.h"
to use my swift protocol in my objective-c class, I get a file not found
.
If I change the #import
instruction to #import "MyProjectNameTests-Swift.h"
, the header is found but not my protocol (it's defined in the MyProjectName
project, not in the MyProjectNameTests
project).
Is there something special to do in the *Tests
projects to use Swift code ?