Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Duplicate OpenTok classes when integrating Framework A into Framework B via CocoaPods #236

Description

@MariVuji

Body:
I have Framework A which depends on OpenTok. I include OpenTok in Framework A’s podspec and build it as an XCFramework.

Then, I integrate Framework A into Framework B via CocoaPods. In Framework B’s podspec, I only list Framework A as a dependency, not OpenTok.

When I install Framework B (with all dependencies) into a demo app, I get runtime warnings like:

objc[747]: Class OTSubscriber is implemented in both .../Frameworks/videoID.framework/videoID and .../Frameworks/onBoardingWidget.framework/onBoardingWidget. This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

It appears OpenTok classes are duplicated because multiple frameworks include it.

Question:
What is the recommended approach to avoid duplicating OpenTok classes when multiple frameworks depend on it via CocoaPods?

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