Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run flutter app with rive latest plugin in ios #439

Open
alihassan143 opened this issue Dec 3, 2024 · 6 comments
Open

Cannot run flutter app with rive latest plugin in ios #439

alihassan143 opened this issue Dec 3, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@alihassan143
Copy link

alihassan143 commented Dec 3, 2024

: 'RivePlugin' has different definitions in different modules; first difference is definition in module 'rive_common.Swift' found method
/Users/mac/Desktop/flutter_projects/exampleapp/build/ios/Debug-iphonesimulator/rive_common/rive_common.framework/Headers/rive_common-Swift.h:630:0

Modules Issue (Xcode): Definition of 'RivePlugin' must be imported from module 'rive_common.Swift' before it is required
/Users/mac/Desktop/flutter_projects/exampleapp/ios/Runner/GeneratedPluginRegistrant.m:215:3

Getting error every time when updating dependency to latest version

in rive: ^0.13.17
project working without any issue
but when updated to 0.13.20 getting the error

@alihassan143 alihassan143 added the bug Something isn't working label Dec 3, 2024
@Berker-Sen
Copy link

+1

@mosabalrsaheed
Copy link

+1 using the latest flutter version released 2.26.

@michaelkreich
Copy link

+1

@damtsnkff
Copy link

damtsnkff commented Dec 30, 2024

Encountered the error while updating Flutter version and running pub get. Fixed now. ✅

  • Working with Flutter 3.27.1, and Rive 0.13.20.

I did clean the cache + reinstall all dependencies to make sure it wasn't an error from the cache.


How I cleaned iOS caches + reinstalled everything
# In your Flutter project root
flutter clean
cd ios
pod deintegrate
rm -rf Pods
rm -rf .symlinks
rm Podfile.lock
Then, in `pubspec.yaml` I updated the Rive version. And then (in Flutter project root)
flutter pub get
cd ios
pod install

Re-launched, and it worked.

@gusmendez99
Copy link

Encountered the error while updating Flutter version and running pub get. Fixed now. ✅

  • Working with Flutter 3.27.1, and Rive 0.13.20.

I did clean the cache + reinstall all dependencies to make sure it wasn't an error from the cache.

How I cleaned iOS caches + reinstalled everything

Build process working now, thanks @damtsnkff

@eivihnd
Copy link

eivihnd commented Jan 14, 2025

Had to manually delete my build folder for this to work, even after following @damtsnkff instructions. (MacOS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants