Skip to content

Mac Catalyst build fails in RxSwift 6.10.1: “Unable to find module dependency: RxCocoaRuntime” #2692

@arshiacont

Description

@arshiacont

After updating to RxSwift 6.10.1 (SwiftPM), my Mac Catalyst build fails with:
Unable to find module dependency: 'RxCocoaRuntime'
Downgrading to 6.9.1 fixes the issue.

Steps to Reproduce

  • In Xcode, add RxSwift via Swift Package Manager.
  • Build a Mac Catalyst target that uses RxCocoa.
  • Build fails with “Unable to find module dependency: RxCocoaRuntime”.
  • Expected Behavior: Mac Catalyst build succeeds (as it does on 6.9.1).

Actual Behavior

Build fails with: Unable to find module dependency: 'RxCocoaRuntime'

Regression

✅ 6.9.1 works
❌ 6.10.1 fails (Swift 5.9 manifest)

Suspected Cause (hypothesis)

In the Swift 5.9 manifest (Package swift-5.9.swift), RxCocoa’s dependency on RxCocoaRuntime is conditional on .iOS/.macOS/.tvOS/.watchOS(/.visionOS) but doesn’t include .macCatalyst. That might cause RxCocoa to import a module that isn’t built for Catalyst. Adding .macCatalyst to the condition might resolve it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions