I have recently converted my app, and unit tests over to Swift 2.0. I am using @testable import AppName
in my Tests.swift files.
Due to an issue with not being able to execute subclasses in multiple targets (see here for the issue), my class EntityName
can only be of Target Membership AppName
, and NOT AppNameTests
.
The problem is, once I switch over to the AppNameTests
schema to run unit tests, code in the module AppName
can't find the class EntityName
and I get
Use of undeclared type 'EntityName'
How do I get AppName
to compile when running tests from the AppNameTests
scheme without that entity class not a member of the scheme?
Aucun commentaire:
Enregistrer un commentaire