The library is distributed using CocoaPods. You can install by adding the following to your Podfile.
target :MyAppNameTests do pod 'LayoutTest' end
target :MyAppNameTests do pod 'LayoutTest/Swift' end
Adding To Non-UnitTest Targets¶
Since LayoutTestCase depends on XCTest, you should only add LayoutTest to your unit tests target. If you want to use some of the functionality in an app (ie. catalog functionality or helpers), then you can include the LayoutTestBase pod in those targets.
target :MyAppName do pod 'LayoutTestBase' end target :MyAppNameTests do pod 'LayoutTest' end
See Writing Tests