Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RiveStateMachineInstance methods throw errors #49

Closed
a-trefilova opened this issue May 24, 2021 · 4 comments · Fixed by #53
Closed

RiveStateMachineInstance methods throw errors #49

a-trefilova opened this issue May 24, 2021 · 4 comments · Fixed by #53
Assignees

Comments

@a-trefilova
Copy link

Where: RiveStateMachineInstance.mm
What's the problem:

  1. method applyTo:(RiveArtboard)artboard* fails at a compile time with error "No member named 'apply' in 'rive::StateMachineInstance' "
  2. method advanceBy:(double)elapsedSeconds fails at a compile time with error "Too few arguments to function call, expected 2, have 1 "
    I would highly appreciate any help with these errors!
@mjtalbot
Copy link
Collaborator

thank you for reporting these issues @a-trefilova ! this sounds related to a change that came in last week. (which removed apply from stateMachineInstances & updated advanceBy to take artboard & elapsedSeconds). let me double check to see if things are in order

@mjtalbot mjtalbot self-assigned this May 24, 2021
@mjtalbot
Copy link
Collaborator

intersting, it looks like your checkout of rive-cpp is slightly ahead of the submodule in rive-ios. the change to remove the applyTo function & change the advanceBy function hasnt happened in rive-ios yet (but we also have not updated the cpp submodule here yet).

We'll get rive-ios updated in any case, but it would also be worthwhile doublechecking where the rive-cpp submodule is pointing in your checkout, and if this lines up with https://github.com/rive-app/rive-ios/tree/master/submodules

@mjtalbot
Copy link
Collaborator

Hi @a-trefilova we've updated the repo & its submodules, so that its now compatible with the latest rive features. this should also resolve your issue, but please re-open this if it does not.

@a-trefilova
Copy link
Author

Thank you a lot!

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 a pull request may close this issue.

2 participants