fix: Xcode 26 compatibility — strip .Swift submodule from RiveRuntime modulemaps#174
Open
fix: Xcode 26 compatibility — strip .Swift submodule from RiveRuntime modulemaps#174
Conversation
… modulemaps RiveRuntime's prebuilt XCFramework (Swift 6.1) and locally-compiled pods (Swift 6.2) generate conflicting C++ interop type definitions, causing hard ODR errors on Xcode 26. This hooks into CocoaPods pre_install to strip the .Swift Clang submodule from RiveRuntime's modulemaps. Fixes #173
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #173
RiveRuntime's prebuilt XCFramework was built with Swift 6.1. Xcode 26 uses Swift 6.2. Both generate
.SwiftClang submodules with different C++ interop type definitions (swift::Optional,swift::String, etc), causing hard ODR errors that can't be suppressed. This is CocoaPods-specific — SPM is unaffected because it uses.swiftmodulefiles directly.The fix hooks into CocoaPods'
pre_installviaModule#prependin the podspec to strip the.Swiftsubmodule from RiveRuntime's prebuilt modulemaps. This is transparent to users — no Podfile changes needed.Modulemap patch
framework module RiveRuntime { umbrella header "RiveRuntime.h" export * module * { export * } } - -module RiveRuntime.Swift { - header "RiveRuntime-Swift.h" - requires objc -}Build error without fix (Xcode 26.2)
After fix
BUILD SUCCEEDED (Xcode 26.2, clean DerivedData,
pod install+xcodebuild)