Bitrise with xcode 16.0 and swift 6 crashes the build on Launch of XCTest

We are in process of migrating to Swift 6 and using the xcode 16.0 released version.

On local my module run completley fine while running the XCTest from xcode. While running from Birise it crashes with below logs. The module which crashes is on swift 6 with concurrency as complete.

Thread 2 Crashed::  Dispatch queue: com.apple.NSURLSession-delegate
0   libdispatch.dylib             	       0x18017b0e8 _dispatch_assert_queue_fail + 116
1   libdispatch.dylib             	       0x18017b074 dispatch_assert_queue + 188
2   libswift_Concurrency.dylib    	       0x2448ce400 swift_task_isCurrentExecutorImpl(swift::SerialExecutorRef) + 284
3   myapp.debug.dylib             	       0x101f01d48 closure #1 in <className>.<MethodName>() + 236

The . is @MainActor method but it is because its getting called from our appDelegate and it works fine in both situation

  1. While running app in device/simulator
  2. While running XCTest from Xcode

But it crashes immedialty when Bitrise start the test case flow.

Question: Is this is a bug or known issue?

Hi @prasenjit.sinha,

Sorry about this!

Please raise a support ticket and a member of the support team will investigate. Please also enable support access so they can look at your app - Enabling the Bitrise Support Access for your app - Bitrise Docs

Thank you!
Balazs

Created one for support

1 Like