lottie-react-native: build failed after update
i update my lottie to the last version
and after i link the new files
my build failed and i get

1 Property 'sceneModel' not found on object of type 'LOTAnimationView *'
2 No visible @interface for 'LOTAnimationView' declares the selector 'setSceneModel:'
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 18 (3 by maintainers)
Something along the lines of…
I just managed to fix this issue for my project (maybe temporarily ¯\_(ツ)_/¯ )
The key steps, to add to @kelset’s solution above, are:
Embedded FrameworksandLinked Frameworks and Libraries/Users/<your_username>/Library/Developer/Xcode/DerivedData/<your_app_name>-<random_string>I’ve followed all these instructions attempting to upgrade and none of them work. I’m still getting
Property ‘sceneModel’ not found on object of type ‘LOTAnimationView *’ No visible @interface for ‘LOTAnimationView’ declares the selector ‘setSceneModel:’
Original issue still happens with RN 0.49 - seems related to XCode tbh, it happened to me again today when I updated XCode from 9.0.0 to 9.0.1.
my build issue is a bit different, it builds when using xcode but not the react-native cli.
i followed all the steps above, i ran the following in further attempts with no success
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm install
@Leeds-eBooks I should clarify that I’m using cocoapods so I remove it from Embedded Frameworks since the project already links with Pod_<target>.framework which already includes Lottie.
This is my cocoapod:
@kytwb Thanks, I do, I think it’s configured correctly?
I am seeing the same issue as @spearmootz. I don’t fully understand what
run-iosdoes differently to building with xcode, but this error comes as part of the following step:It seems that building with xcode doesn’t carry out this step, or not in the same way. Does anyone have any suggestions as to how I can proceed with this? Thanks!
@kelset I tried using:
react-native unlink lottie-react-native && react-native link lottie-react-nativeAs well as:react-native unlink lottie-ios && react-native link lottie-iosBoth of these did not work. What was the exact process you went through to relink lottie?