The following sample shows a plugin in very early development. Don’t hesitate to try it out. If you encounter any problems, please open an issue on GitHub.
You can open this sample inside the Xcode IDE using the Xcode IDE plugin.

This sample shows how to execute the XCTest of an iOS application built by Gradle inside Xcode. The application and tests has no dependencies and targets only the iPhone Simulator with a minimum iOS version of 13.2.

build.gradle
plugins {
	id 'dev.nokee.objective-c-ios-application'
	id 'dev.nokee.objective-c-xctest-test-suite'
	id 'dev.nokee.xcode-ide'
}

group = 'com.example'
build.gradle.kts
plugins {
	id("dev.nokee.objective-c-ios-application")
	id("dev.nokee.objective-c-xctest-test-suite")
	id("dev.nokee.xcode-ide")
}

group = "com.example"

Open the application in Xcode and execute the tests:

$ ./gradlew openXcode

> Task :xcode
Generated Xcode workspace at file://objective-c-ios-application.xcworkspace/

BUILD SUCCESSFUL
4 actionable tasks: 4 executed
Execute iOS XCTest inside simulator from Xcode IDE