You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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?