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 screen shot 2017-10-05 at 0 47 45


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)

Most upvoted comments

Something along the lines of…

  1. unlink lottie-ios
  2. unlink lottie-react-native
  3. clean the build
  4. clean the build folder
  5. close XCode
  6. remove node modules
  7. reinstall node modules
  8. relink the 2 lotties

I just managed to fix this issue for my project (maybe temporarily ¯\_(ツ)_/¯ )

The key steps, to add to @kelset’s solution above, are:

  • after @kelset’s step 2, remove all references to lottie from Embedded Frameworks and Linked Frameworks and Libraries
  • after @kelset’s step 4, delete /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.

CompileC projectFolder/ios/build/Build/Intermediates.noindex/Lottie.build/Debug-iphonesimulator/Lottie_iOS.build/Objects-normal/x86_64/LOTAnimatedControl.o lottie-ios/Classes/Private/LOTAnimatedControl.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

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:

  pod 'lottie-ios', path: '../node_modules/lottie-ios'
  pod 'lottie-react-native', path: '../node_modules/lottie-react-native'

@kytwb Thanks, I do, I think it’s configured correctly?

screen shot 2017-10-17 at 10 57 56

I am seeing the same issue as @spearmootz. I don’t fully understand what run-ios does differently to building with xcode, but this error comes as part of the following step:

=== BUILD TARGET Lottie_iOS OF PROJECT Lottie WITH CONFIGURATION Debug ===

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-native As well as: react-native unlink lottie-ios && react-native link lottie-ios

Both of these did not work. What was the exact process you went through to relink lottie?