Skip to main content
f
20d ago

Embed Flutter app as a module inside iOS blocked by Rive error

I'm exporting my Flutter app as a module to be able to embed in iOS. All the Rive animation is loading properly when I launch the Flutter app in iPhone simulator or chrome. But once I launch the app as a module in iOS i'm getting this error:


[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'init': dlsym(RTLD_DEFAULT, init): symbol not found #0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33:70) #1 init (package:rive_common/src/rive_text_ffi.dart:493:16) #2 init (package:rive_common/src/rive_text_ffi.dart) #3 initFont (package:rive_common/src/rive_text_ffi.dart:810:3) #4 Font.initialize (package:rive_common/rive_text.dart:461:7) #5 RiveFile.initialize (package:rive/src/rive_file.dart:392:33) #6 RiveFile._initTextAndImport (package:rive/src/rive_file.dart:414:13) #7 RiveFile.asset (package:rive/src/rive_file.dart:444:12) <asynchronous suspension> #8 riveFileProvider.<anonymous closure> (package:replay_gaming_module/ui/rive/rive_providers.dart:5:16) <asynchronous suspension> #9 FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:348:9) <asynchronous suspension>

1 reply
19d ago

Can I get a bit more info on this?

  • What version of Rive are you using?

  • What model and iOS version is failing ?

  • Do you have a version working on a simulator that matches the model and version that's failing on a device?

  • Are you able to provide a simplified version of your code so we can try it out?

Thanks,
Lance