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

iOS build error after upgrading to Expo 51. #43

Closed
idrakimuhamad opened this issue May 12, 2024 · 1 comment
Closed

iOS build error after upgrading to Expo 51. #43

idrakimuhamad opened this issue May 12, 2024 · 1 comment

Comments

@idrakimuhamad
Copy link
Contributor

idrakimuhamad commented May 12, 2024

I'm in the midst of upgrading my app's Expo SDK to 51. After all that, I'm getting this error when building the app.

Latest skottie and latest skia.

ld: Undefined symbols:
  skottie::Animation::seekFrameTime(double, sksg::InvalidationController*), referenced from:
      skottie::Animation::seek(float, sksg::InvalidationController*) in react_native_skia_skottie[5](react-native-skia-skottie.o)
      RNSkia::RNSkSkottieRenderer::performDraw(std::__1::shared_ptr<RNSkia::RNSkCanvasProvider>) in react_native_skia_skottie[9](SkiaSkottieViewManager.o)
  skottie::Animation::Builder::make(char const*, unsigned long), referenced from:
      RNSkia::JsiSkSkottie::createCtor(std::__1::shared_ptr<RNSkia::RNSkPlatformContext>)::'lambda'(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) const in react_native_skia_skottie[5](react-native-skia-skottie.o)
  skottie::Animation::Builder::Builder(unsigned int), referenced from:
      RNSkia::JsiSkSkottie::createCtor(std::__1::shared_ptr<RNSkia::RNSkPlatformContext>)::'lambda'(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) const in react_native_skia_skottie[5](react-native-skia-skottie.o)
  skottie::Animation::Builder::~Builder(), referenced from:
      RNSkia::JsiSkSkottie::createCtor(std::__1::shared_ptr<RNSkia::RNSkPlatformContext>)::'lambda'(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) const in react_native_skia_skottie[5](react-native-skia-skottie.o)
      RNSkia::JsiSkSkottie::createCtor(std::__1::shared_ptr<RNSkia::RNSkPlatformContext>)::'lambda'(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) const in react_native_skia_skottie[5](react-native-skia-skottie.o)
  skottie::Animation::seekFrame(double, sksg::InvalidationController*), referenced from:
      RNSkia::RNSkSkottieRenderer::resetPlayback() in react_native_skia_skottie[9](SkiaSkottieViewManager.o)
      RNSkia::RNSkSkottieRenderer::setSrc(std::__1::shared_ptr<facebook::jsi::HostObject>) in react_native_skia_skottie[9](SkiaSkottieViewManager.o)
  skottie::Animation::~Animation(), referenced from:
      SkNVRefCnt<skottie::Animation>::unref() const in react_native_skia_skottie[5](react-native-skia-skottie.o)
  skottie::Animation::render(SkCanvas*, SkRect const*) const, referenced from:
      RNSkia::JsiSkSkottie::render(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) in react_native_skia_skottie[5](react-native-skia-skottie.o)
      RNSkia::RNSkSkottieRenderer::performDraw(std::__1::shared_ptr<RNSkia::RNSkCanvasProvider>)::'lambda'(SkCanvas*)::operator()(SkCanvas*) const in react_native_skia_skottie[9](SkiaSkottieViewManager.o)

If I removed Skottie, it can build fine.

@idrakimuhamad
Copy link
Contributor Author

idrakimuhamad commented Jun 5, 2024

Could it relate to this?

I have to remove this for now and go back to lottie-react-native

Update

I've tried creating another project from scratch, and able to actually build this. So it must be something in my project or config. But the log from XCode only pointing to this so I'm kinda lost as to where it is originated.

So I looked into the XCode of my app and the new app, compare everything i could, and I notice that the search path for headers and framework doesn't include skottie's and substantially different that newly generated app. So I try clean up and manually moving stuff. Now I'm able to build the app.

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

No branches or pull requests

1 participant