rive-app / rive-ios

iOS runtime for Rive
MIT License
462 stars 53 forks source link

Our SDK is crashing when using Rive Runtime #287

Open shashankk7 opened 6 months ago

shashankk7 commented 6 months ago

We have integrated Rive in our SDK using Cocoapods, and when we integrate our SDK into one of our sample apps it just crashes with the below error:

dyld[1601]: Library not loaded: @rpath/RiveRuntime.framework/RiveRuntime

Reason: tried: '/usr/lib/swift/RiveRuntime.framework/RiveRuntime' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/RiveRuntime.framework/RiveRuntime' (no such file), '/private/var/containers/Bundle/Application/D5AA5033-232C-4CE6-BE7E-BD977DDE4E90/SampleApp.app/Frameworks/RiveRuntime.framework/RiveRuntime' (no such file), 

Rive version - 5.5.1 Devices - All iOS version - Greater than 14

Could anyone please help us on how to integrate Rive properly in an SDK that is distributed as a framework?

We use other thrid party frameworks as well and they work fine.

FerranRL commented 5 months ago

I have same problem when using Rive Swift package. Some workaround for make possible to install in a iOS device? In sinulator there`s no problem.

roozik commented 3 months ago

In the target's General tab, there is an Embedded Binaries field. When you add the framework there the crash is resolved.

Reference is here on Apple Developer Forums.