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
- While running app in device/simulator
- 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?