This is my simple test case:
import XCTest
@testable import MyApp //it doesn\'t work
because of this:
class TabBar
Since Apple prevents you from accessing your main application from the UI tests, you might think about reorganizing your application structure to store the relevant data which needs checking into a spot accessible to the UI tests.
You might consider moving definitions and data from your main application class to a separate class which can be loaded by the test framework.