Skip to main content
Answered

Deadlock when unit testing on iOS

  • 13 November 2024
  • 3 replies
  • 50 views

Forum|alt.badge.img

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.

Best answer by mateusz.leszkiewicz

Hi ​@Tom Wagner, It’s Mat from the Support Engineering Team 😀

Are you still experiencing this issue with the latest iOS Intercom SDK 18.2.2?

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img
  • Author
  • Connector
  • 8 replies
  • November 13, 2024

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. 


Forum|alt.badge.img
  • Author
  • Connector
  • 8 replies
  • November 19, 2024

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


mateusz.leszkiewicz
Intercom Team
Forum|alt.badge.img+5

Hi ​@Tom Wagner, It’s Mat from the Support Engineering Team 😀

Are you still experiencing this issue with the latest iOS Intercom SDK 18.2.2?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings