Xcode – Why this test case hangs when run on a simulator?
Consider this simple test case func test_Example() async { let exp = expectation(description: "It's the expectation") Task { print("Task says: Hello!") exp.fulfill() } wait(for: [exp], timeout: 600) } When I run this on an actual device, the test passes. However,…