Tests on Xcode Cloud with Apps importing CoreML

So, our app imports CoreML and loads the CoreML models when starting up.

Locally all tests succeed consistently.

Running Tests on Xcode Cloud, they all fail with (UI and Unit Tests)

App (6846) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying Error: Test crashed with signal ill before establishing connection.))

the test instance is busy for 35min and then just aborts, with all tests failing.

This sounds to me like the simulator is maybe showing some exception or is stuck?

Or is it possible that xcode server runs in a special environment that gets stuck on loading CoreML models?

Please file a Feedback report using Feedback Assistant, then post the number here. Be sure to include links to failing builds in the report.

Thank you,

I've created FB20529610 and attached *.xctestproducts.zip build artifact, I hope that allows you to reproduce the issue?

When you say @DTS Engineer

Be sure to include links to failing builds in the report.

you mean the url when opening the build via AppStoreConnect, right? (Like https://appstoreconnect.apple.com/teams/{teamit}/apps/}appid}/ci/builds/{buildid}/summary ) Because when looking at it in xcode there is no share button or copy url, is there?

PS: Using the latest Xcode versions, all tests now fail with:

Test crashed with signal ill.

Ok, I was able to further dive down on the issue:

let device = MTLCreateSystemDefaultDevice()

seems to not be available.

We use several Metal compute shaders in our code and tests. I shouldn't have force-unwrapped the MTLCreateSystemDefaultDevice and fixed that, but we do need a device to test the functions that rely on the device..

Tests on Xcode Cloud with Apps importing CoreML
 
 
Q