Skip to content

Hangs on async functions with Framework APIs #51

@dehesa

Description

@dehesa

Hi there @kabiroberai,

Here at Raycast, we are using your package to run some experiments for multiplatform code (Windows and macOS).
The issue occurs when we try to run some simple CoreLocation async functions in macOS, which produce hangs (i.e. the code just blocks and never pass the targeted line).

I read and implemented the changes suggested by #48 and #49 to run Swift async functions on Swift 6.1. You can easily replicate by calling an exposing an async function and testing it with an expression such as Los Angeles, United States:

internal import CoreLocation

func landmarksFor(_ expression: String) async throws -> [CLPlacemark] {
  return try await geocoder.geocodeAddressString(expression, in: nil, preferredLocale: .current)
}

Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions