Skip to content

Cannot assign value of type 'RiveArtboard??' to type 'RiveArtboard?' #255

@07abhishekrock

Description

@07abhishekrock

Description

Facing build error on latest @rive-app/react-native@0.4.6 version.
Cannot assign value of type 'RiveArtboard??' to type 'RiveArtboard?'
error in HybridRiveFile.swift:L57

Provide a Repro

  1. Just did yarn install and then pod install
  2. When building on xcode 26.3, faced this error.

Source .riv/.rev file

Expected behavior

The build should work normally.

Screenshots

Image

Device & Versions (please complete the following information)

  • Device: [e.g. Android Emulator, iOS Simulator] - iOS simulator iPhone 17
  • OS: [e.g. Android SDK API Level 30, iOS 14.5] - iOS 26.3
  • React Native Version: [Check your package.json or run npx react-native info e.g.: 0.79.2] 0.81.1
  • Expo Version (if applicable): [Check your package.json or run npx expo-env-info | grep 'expo:' e.g.: ~54.0.0]
  • @rive-app/react-native Version: [Check your package.json e.g.: 0.1.0] 0.4.6

Additional context

Adding the suggested fix by xcode to safe cast it worked and then the build worked fine along with all other features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions