1

I am using XCTest to run UI tests on iPhone.

Whenever few tests are failed, the xcodebuild command is stuck indefinitely without yielding any results. I have to terminate the build manually. I have observed the same behavior when the tests are executed from XCode(15.3).

Below are the settings from my test plan - enter image description here

Can someone please help me how can I debug this behavior?

2
  • Nothing looks awry in your setup. Would have to look at this live to be of much help. I'd love to point you to a place where that could happen, but probably against TOS here. Commented Mar 11, 2024 at 15:40
  • It is happening right now using xcodebuild, where Xcode is 16.4. I haven't had this problem before. I have to manually use Activity Monitor to kill off the xcodebuild process. I launch xcodebuild from Terminal, but even Ctrl-C does nothing. Commented Aug 5 at 7:05

1 Answer 1

0

I have stumbled upon this issue and after many days of trying different things this kicked off: https://forums.developer.apple.com/forums/thread/729462

Will have to explore deeper the thing, but it did fire up tests. Seems like adding a separate scheme for tests (previously had auto generated one scheme) + disabling parallel option from App forum thread did solve my problem and I was able to run any test.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.