task iosTest(type: Exec) { onlyIf { Os.isFamily(Os.FAMILY_MAC) } dependsOn(linkTestDebugExecutableIosX64) def testExecutable = linkTestDebugExecutableIosX64.outputFile inputs.file(testExecutable) configure { commandLine("xcrun", "simctl", "spawn", "iPhone 8", testExecutable.get()) } }