rive-ios icon indicating copy to clipboard operation
rive-ios copied to clipboard

Animation freezing

Open insaite opened this issue 1 year ago • 5 comments

When I first load the screen with animation, the animation itself freezes for me. Also, during this, I see a message in the console: fopen failed for data file: errno = 2 (No such file or directory) Errors found! Invalidating cache...

Can you tell me how I can fix this?

insaite avatar Sep 29 '23 10:09 insaite

Hi @insaite can you share the code that you're using. Also be sure to include your Rive file (.riv) as a resource in your application.

Be sure to take a look at the iOS getting started docs: https://help.rive.app/runtimes/overview/ios

HayesGordon avatar Sep 29 '23 11:09 HayesGordon

Unfortunately, I don't have the permission to share the animation file. But it's not necessary since I'm getting the same result using 'rive_animation_logo.riv'. The code example is standard, as in the documentation.

struct ContentView: View { var body: some View { RiveViewModel(fileName: "rive_animation_logo") .view() } }

insaite avatar Sep 29 '23 11:09 insaite

I had the same problem on Friday. Try specifying the animationName field. The name of the animation can be viewed here by uploading .riv

vadimbadretdinov avatar Oct 02 '23 08:10 vadimbadretdinov

Unfortunately, it didn't help, the behavior didn't change.

insaite avatar Oct 02 '23 11:10 insaite

I face the same issue.

mengyi-dev avatar Nov 14 '23 07:11 mengyi-dev