Post

Replies

Boosts

Views

Activity

Reply to UI tests on iOS15 is launching but not executing tests
I think it's a bit tricker than that unforunately. I can get you a spindump file of our project deadlocking during testing if that will help. I think it's also happening during normal function of the app too, users are reporting being stuck on a screen before the splash and the UIApplicationDelegate callbacks didFinishLaunchingWithOptions are never called. Looks like a UIKit bug causing a deadlock. I'm using Texture as a pod and I believe the deadlock is happening during some initialisation code where UIKit is called to create a layer. Looks like the deadlock is happening inside UIKit https://github.com/TextureGroup/Texture/issues/2029
Sep ’21
Reply to UI tests on iOS15 is launching but not executing tests
I have a spindump of the running simulator after the tests timeout if it'll help Eskimo Without a good understanding on how to analyse spin dumps. I see this at the bottom of the main apps running. It looks like two threads are waiting on each other and causing the deadlock (blocked by turnstile waiting for AppName [66373] [unique pid 463253] thread 0x8ffc2e) 1-204 drive.google.com/file/d/1KhdlKf5v77cVuiOQ-T1ZUGSKrVLobCzs/view?usp=sharing
Sep ’21
Reply to XCTFail immediately aborts the test in Xcode 26 — no retry on failure
So after some investigation. I found having the async setup() function caused this behaviour to prevent retries. When moving to the synchronous setup function I no longer get issue. The problem being I need to do async code in my setup... If I move my code to the following, test repetitions now work and I see no such errors override func setUp() { super.setUp() continueAfterFailure = false // setup async seems to prevent test repetitions from working let exp = expectation(description: "setup") Task { try await setupWebApp(router: router) exp.fulfill() } wait(for: [exp], timeout: 10) }
2d