iOS Build Environment Help Center

I want to run xctestrun.

append delete Tester PJ

Windows 11 pro
iOS SDK 15~17

I am using XCtest on macos with a command like xcrun xcodebuild test-without-building -xctestrun abc/MacOS/test.app/PlugIns/test.xctest/test.xctestrun -destination id=xxxxx Is there a way to run XCtest like the command above?

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello

xcrun is a closed source Apple utility that automates Xcode which is a closed source Apple IDE.

I think you're asking too much here. Test automation is beyond the scope of this toolchain. It builds Apple apps on Windows. It does so by using the parts of the tools that Apple themselve use that are open source, that I ported to Windows, and bridges the gap to the goal using other tools that I specifically developed to fill the many holes. But I don't see how doing test automation *using Apple's tools* can be done on anything else than a Mac ?

If you rather want to investigate test automation of iOS apps on Windows, and you are a programmer yourself, look at the possibilities of libimobiledevice. Or, if what you are testing is your own app, bundle the test protocols within the app itself, and create the receiver end. Your app can transmit its own test results to your PC in various ways : Wifi, USB, Bluetooth, even e-mail.

append delete #2. Test PJ

It seemed like I could run it with the test argument in the xcrun xcodebuild command, but it seems like that wasn't the case.

I thought there might be a way to just run the app defined as xcuitest in Windows.

thank you

append delete #3. Pierre-Marie Baty

Running an app is not the problem. The problem in this case is instrumenting it automatically. I have no idea how Xcode does that. Maybe the people behind libimobiledevice have info about it, but I don’t know if that would be enough to reimplement an equivalent automation on Windows. Re-creating a whole test automation framework (the macOS test.app and its plugins) looks unavoidable.

It might sound surprising but you’re actually the first user ever to request the feature. I’m sorry to have nothing better to suggest than the tailor-made solution embedded inside the app as discussed above.

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty