skiptools / skiptools/skip-bridge
@MainActor in bridged code uses MainActor.assumeIsolated which is only available in iOS 17
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 6
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
The CI failure on macOS 13 raises the issue of:
@available(macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0, *)
nonisolated public func assumeIsolated<T>(_ operation: (isolated Self) throws -> T, file: StaticString = #fileID, line: UInt = #line) rethrows -> T where T : Sendable
resulting in this test failure:
/Users/runner/work/skip-bridge/skip-bridge/.build/plugins/outputs/skip-bridge/SkipBridgeToKotlinSamplesTests/skipstone/SkipBridgeToKotlinSamples/.build/SkipBridgeToKotlinSamples/swift/plugins/outputs/swift/SkipBridgeToKotlinSamples/skipstone/SkipBridgeGenerated/Samples_Bridge.swift:854:22: error: 'assumeIsolated(_:file:line:)' is only available in macOS 14.0 or newer
return MainActor.assumeIsolated {
There may be no solution other than documenting that @ MainActor is limited to iOS 17+.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the macOS 13 CI failure and the generated Samples_Bridge.swift location shown in the report. Check where MainActor.assumeIsolated is emitted and determine whether support for older Apple OS versions is possible; otherwise, document the resulting minimum availability requirement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin, swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100