Skip to content

Expo SDK 56 is not able to build with Skia v2.6.2: 'third_party/base64.h' file not found #3895

Description

@lucksp

Description

As a developer following the Expo SDK56 upgrade instructions, I am unable to build a development prebuild anymore. There is a build failure of 'third_party/base64.h' file not found

PR #3853 was released, but requires an update from the default 2.6.2 that Expo has. SDK 56 is fixed to @shopify/react-native-skia: "2.6.2" so altering the version will cause a warning in expo-doctor.

Will Expo ever update their versions to allow 2.6.3?

So i tested out 2.6.3 which gives the warning:

Using 2.6.3 instead of 2.6.2 for @shopify/react-native-skia because this version was explicitly provided. Packages excluded from dependency validation should be listed in expo.install.exclude in package.json. Learn more

However, if I update to 2.6.3, it fails the Expo prebuild still:

> Compiling @shopify/react-native-skia Pods/react-native-skia » ViewScreenshotService.mm

❌  (node_modules/@shopify/react-native-skia/apple/ViewScreenshotService.h:15:10)

  13 | #pragma clang diagnostic ignored "-Wdocumentation"
  14 |
> 15 | #include "include/core/SkImage.h"
     |          ^ 'include/core/SkImage.h' file not found
  16 |
  17 | #pragma clang diagnostic pop
  18 |

› Compiling @shopify/react-native-skia Pods/react-native-skia » SkottieUtils.cpp

❌  (node_modules/@shopify/react-native-skia/cpp/api/third_party/SkottieUtils.h:10:10)

   8 | #pragma once
   9 |
> 10 | #include "include/core/SkRefCnt.h"
     |          ^ 'include/core/SkRefCnt.h' file not found
  11 | #include "include/core/SkString.h"
  12 | #include "modules/skottie/include/ExternalLayer.h"
  13 | #include "modules/skottie/include/SkottieProperty.h"

› Compiling @shopify/react-native-skia Pods/react-native-skia » SkiaWebGPUView.mm

A similar issue was posted in #3839 but is closed

React Native Skia Version

2.6.2 & 2.6.3

React Native Version

0.85.3

Using New Architecture

  • Enabled

Steps to Reproduce

Follow instructions per link above or:

  • Upgrade all dependencies to match SDK 56: npx expo install expo@^56.0.0 --fix
  • Check for any possible known issues with Expo Doctor: npx expo-doctor@latest

Run npx expo install @shopify/react-native-skia` to make sure eligible package is installed.

Snack, Code Example, Screenshot, or Link to Repository

After updated to 2.6.3 here is the terminal err:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions