Skip to content

Concurrently-executed local function 'complete()' must be marked as '@Sendable' #516

Description

@PawelZaw

Hey,

I have a package in 4.3.1 version. Xcode - 13.3.1 version.

I had made pod install then I was starting to build an app. During building I received in debug console error:

Swift Compiler Error (Xcode): Concurrently-executed local function 'complete()' must be marked as '@sendable'
../ios/Pods/RevenueCat/Sources/Purchasing/Purchases/PurchasesOrchestrator.swift:917:21

So I modified the code by adding @sendable:

@Sendable @MainActor func complete() { completion?(transaction, nil, purchasesError, false) }

After change everything is fine. Please, check why an app can't be build without above modification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions