Skip to content

Conversation

@nedimf
Copy link

@nedimf nedimf commented Jun 3, 2025

Context:
According to Rive’s documentation on logging, developers should be able to use RiveLogger to debug animation state and transitions. However, when integrating Rive via Swift Package Manager (SPM), RiveLogger is not exposed to the consumer project, making it inaccessible in Xcode.

Fix:
Added #import <RiveRuntime/RiveLogger.h> to RiveRuntime.h to expose RiveLogger to SPM consumers.

This change allows developers using Rive via SPM to leverage Rive’s built-in logging capabilities as intended, without having to manually modify package internals or resort to workarounds.

Tested:
Confirmed that enabling logs with RiveLogger.isEnabled = true now compiles and outputs logs correctly in Xcode when integrated through SPM.

@dskuza
Copy link
Collaborator

dskuza commented Jun 4, 2025

Interesting. Which version of the runtime are you trying this with? Our Preview scheme uses the Swift package directly, and modifies the Rive logger, which is also marked as public. Are you looking to use this in Objective-C? It should be compatible with Swift out-of-the-box.

@nedimf
Copy link
Author

nedimf commented Jun 6, 2025

I was trying it directly in Swift, Xcode wouldn't recognize it.

@dskuza
Copy link
Collaborator

dskuza commented Jun 12, 2025

Does this fail in a brand new project? Can you try and create a minimal reproduction? I've created tons of sample / test apps and never run into this, so I'm not quite sure what could be going on. As I mentioned, that header doesn't even exist, so I'm unsure how the compiler wouldn't error about that addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants