Skip to main content

When running unit tests in Xcode Cloud we often get a test failure because the tests failed to start. In those cases we get a spindump indicating that there is a deadlock caused by something Intercom does as a result of [UIBarAppearance init] being called.

 

Anyone seen something similar? It seems to be related to a global initializer so just linking against Intercom will cause the problem.  Just to be sure I’ve changed our code to not call any Intercom methods when running as part of XCTests but it appears to still be happening.

Looks like this may be related: https://forums.developer.apple.com/forums/thread/762078

It describes a deadlock during test injection related to accessing the main screen from a global initializer. I suspect Intercom is doing something similar that causes a deadlock with iOS 18 SDK. 


Not sure who marked this as best answer but does this mean Intercom is going to look into the issue?


Reply