why unit tests pass locally, but aren't working in Xcode cloud?

Hello,

I have unit tests related to realm and it’s working on my side with my simulator & in Xcode cloud within the same branch. But, when it’s merged to the main branch I got a failed unit test relating to realm.

I run all unit tests locally on main branch with the same simulator & iOS version as in Xcode cloud & all tests are passed. (while it's not the case on the cloud)

I cannot catch the reason for this problem to start solving it. Appreciate any help.

Thank you in advance!

It would be difficult for us to help you solve this issue without more information.

If this problem persists, please file a report on Feedback Assistant and include a result bundle containing your failing Xcode Cloud run.

https://feedbackassistant.apple.com

why unit tests pass locally, but aren't working in Xcode cloud?
 
 
Q