iOS Share Extension with Rive

I’m using RiveRuntime 6.15.1 with an iOS app building with Xcode 16.4. Rive is working fine inside our app with no issues however when I add the animation to the iOS share extension, the share extension no longer loads. It just opens and crashes immediately. As soon as I disable Rive the share extension works again.

Some notes:

  • Share Extensions have strict limits on memory, CPU time etc. It looked like when the Share Extension was linked to the Rive runtime, iOS was killing it - e.g. because it exceeded some memory pressure limit or cpu limit. This was happening well before we attempted to play back an animation.

  • These limits may vary from device-to-device (e.g. newer iOS devices have more ram).

  • I initially wondered if the cause of the problem was the Xcode debugger- I've seen issues during development when the Share Extension will refuse to run attached to Xcode. However, we were able to eliminate this possibility.

  • In my console I can see: Subsystem: com.apple.runtime-issues Category: Slow Launch Risk Hide Activity