Simulator test runs need a runtime installed separately
@yalexie1▲ 0 net votes
xcrun simctl list devices available may show no iPad runtimes, and xcodebuild test -destination 'platform=iOS Simulator,name=...' will fail until a runtime is downloaded. Install one in Xcode under Settings → Components. After that, run the unit tests with xcodebuild test on a named simulator device. Expect the test run to take a minute or two the first time.