Skip to content

@rive-app/rive-nitro-react-native 0.2.6 does not work with Xcode 26+ #173

@mfazekas

Description

@mfazekas

During the iOS build, I have this error like @ethanneff

iOS errors ❌ (/Users/guillermo/Library/Developer/Xcode/DerivedData/EosCareDev-gfwjmymejapfotcymmokvbobpvfn/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/RiveRuntime/RiveRuntime.framework/Headers/RiveRuntime-Swift.h:3603:62)

3601 | auto &consumedParamCopy_some = *(new(copyBuffer_consumedParamCopy_some) T_0_0(some_));
3602 | swift::_impl::ConsumedValueStorageDestroyer<T_0_0> storageGuard_consumedParamCopy_some(consumedParamCopy_some);
3603 | return swift::_impl::_impl_Optional<T_0_0>::returnNewValue([&](char * _Nonnull result) SWIFT_INLINE_THUNK_ATTRIBUTES {
| ^ '' has different definitions in different modules; first difference is definition in module 'RiveRuntime.Swift' found method 'operator()' with body
3604 | swift::_impl::$sSqyxSgxcfC(result, swift::_impl::getOpaquePointer(consumedParamCopy_some), swift::TypeMetadataTrait<T_0_0>::getTypeMetadata());
3605 | });
3606 | }

❌ (/Users/guillermo/Library/Developer/Xcode/DerivedData/EosCareDev-gfwjmymejapfotcymmokvbobpvfn/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/RiveRuntime/RiveRuntime.framework/Headers/RiveRuntime-Swift.h:3596:78)

3594 | requires swift::isUsableInGenericContext<T_0_0>
3595 | #endif // cpp_concepts
3596 | SWIFT_INLINE_THUNK swift::Optional<T_0_0> Optional<T_0_0>::init(const T_0_0& some
) {
| ^ 'swift::Optional::init' has different definitions in different modules; definition in module 'RiveRuntime.Swift' first difference is 1st parameter with name 'some
'
3597 | #ifndef __cpp_concepts
3598 | static_assert(swift::isUsableInGenericContext<T_0_0>, "type cannot be used in a Swift generic context");
3599 | #endif // __cpp_concepts

❌ (/Users/guillermo/Library/Developer/Xcode/DerivedData/EosCareDev-gfwjmymejapfotcymmokvbobpvfn/Build/Products/Debug-iphoneos/NitroModules/Swift Compatibility Header/NitroModules-Swift.h:2177:29)

2175 | SWIFT_INLINE_THUNK swift::Int distanceFromTo(const String_Index& i, const String_Index& j) const SWIFT_SYMBOL("s:SS8UTF8ViewV8distance4from2toSiSS5IndexV_AGtF");
2176 | SWIFT_INLINE_THUNK uint8_t operator [](const String_Index& i) const SWIFT_SYMBOL("s:SS8UTF8ViewVys5UInt8VSS5IndexVcig");
2177 | SWIFT_INLINE_THUNK String getDescription() const SWIFT_SYMBOL("s:SS8UTF8ViewV11descriptionSSvp");
| ^ 'swift::UTF8View' has different definitions in different modules; first difference is definition in module 'NitroModules.Swift' found method 'getDescription'
2178 | SWIFT_INLINE_THUNK String getDebugDescription() const SWIFT_SYMBOL("s:SS8UTF8ViewV16debugDescriptionSSvp");
2179 | SWIFT_INLINE_THUNK swift::Int getCount() const SWIFT_SYMBOL("s:SS8UTF8ViewV5countSivp");
2180 | private:

❌ (/Users/guillermo/Library/Developer/Xcode/DerivedData/EosCareDev-gfwjmymejapfotcymmokvbobpvfn/Build/Products/Debug-iphoneos/NitroModules/Swift Compatibility Header/NitroModules-Swift.h:1984:37)

1982 | SWIFT_INLINE_THUNK void setCharacters(const String& newValue) SWIFT_SYMBOL("s:SS10charactersSSvp");
1983 | SWIFT_INLINE_THUNK swift::Int getHashValue() const SWIFT_SYMBOL("s:SS9hashValueSivp");
1984 | SWIFT_INLINE_THUNK Array<uint8_t> get_nfcCodeUnits() const SWIFT_SYMBOL("s:SS13_nfcCodeUnitsSays5UInt8VGvp");
| ^ 'swift::String' has different definitions in different modules; first difference is definition in module 'NitroModules.Swift' found method 'get_nfcCodeUnits'
1985 | /// Returns a lowercase version of the string.
1986 | /// Here’s an example of transforming a string to all lowercase letters.
1987 | /// \code

❌ (/Users/guillermo/Library/Developer/Xcode/DerivedData/EosCareDev-gfwjmymejapfotcymmokvbobpvfn/Build/Products/Debug-iphoneos/NitroModules/Swift Compatibility Header/NitroModules-Swift.h:1722:52)

1720 | SWIFT_INLINE_THUNK T_0_0 getUnsafelyUnwrapped() const SWIFT_SYMBOL("s:SqsRi0_zrlE17unsafelyUnwrappedxvp");
1721 | /// Creates an instance that stores the given value.
1722 | static SWIFT_INLINE_THUNK swift::Optional<T_0_0> init(const T_0_0& value) SWIFT_SYMBOL("s:SqsRi_zrlEyxSgxcfc");
| ^ 'swift::Optional' has different definitions in different modules; first difference is definition in module 'NitroModules.Swift' found method 'init' with 1st parameter named 'value'
1723 | #define SWIFT_CXX_INTEROP_OPTIONAL_MIXIN
1724 | #pragma clang diagnostic push
1725 | #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"

Originally posted by @martinezguillaume in #168

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