Skip to content

Compilation Error with Xcode 26 #271

Description

@tdufourheadcheck

Describe the bug?

Hi,

Since updating to Xcode 26, I have some compilation errors coming from the OktaBrowserSignin pod library.

They are all the same errors. Here is one example. File AuthorizationCodeFlow.swift, line 222.

Compilation error: "Call to actor-isolated instance method 'finished()' in a synchronous nonisolated context".

I can fix the issue by modifying

finally: {
  finished()
}

to

finally: {
  Task { @MainActor in
    await finished()
  }
}

But I'd prefer to not manually modify external library code if at all possible. I'm also not an expert at all in Swift 6 concurrency code.

Is there another way to fix the issue? A project setting perhaps?

What is expected to happen?

No compilation error.

What is the actual behavior?

There are multiple compilation errors like the one described above.

Reproduction Steps?

-Download latest Xcode (26.2 at the moment)
-Install the OktaBrowserSignin pod library using cocoapods

Additional Information?

My project is still on Swift 5, not Swift 6.

SDK Version(s)

iOS 26.2

Build Information

Xcode 26.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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