mybigday / react-native-external-display

React Native view renderer in External Display
MIT License
213 stars 22 forks source link

Build Failure with New Architecture `react/utils/fnv1a.h' file not found` #897

Closed CacaoRick closed 2 months ago

CacaoRick commented 2 months ago

dependencies:

{
  "dependencies": {
    "expo": "~51.0.24",
    "expo-build-properties": "~0.12.4",
    "expo-image": "~1.12.13",
    "expo-linear-gradient": "~13.0.2",
    "expo-splash-screen": "~0.27.5",
    "expo-status-bar": "~1.12.1",
    "react": "18.2.0",
    "react-native": "0.74.3",
    "react-native-external-display": "^0.6.5"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0"
  }
}

Reproduce:

npx create-expo-app@latest -e with-new-arch
npx expo install react-native-external-display
npx expo prebuild
yarn ios

Error:

› Compiling react-native-external-display Pods/RNExternalDisplay » RNExternalDisplayView.mm

❌  (/Users/user/Library/Developer/Xcode/DerivedData/bobateach-dztdjjmrxtuugdfuuaslwjjbzybs/Build/Products/Debug-iphonesimulator/React-Fabric/React_Fabric.framework/Headers/react/renderer/core/PropsMacros.h:11:10)

   9 | 
  10 | #include <react/renderer/core/RawPropsPrimitives.h>
> 11 | #include <react/utils/fnv1a.h>
     |          ^ 'react/utils/fnv1a.h' file not found
  12 | #include <functional>
  13 | 
  14 | // We need to use clang pragmas inside of a macro below,

› Compiling react-native-external-display Pods/RNExternalDisplay » RNExternalDisplayUtils.mm

❌  (/Users/user/Library/Developer/Xcode/DerivedData/bobateach-dztdjjmrxtuugdfuuaslwjjbzybs/Build/Products/Debug-iphonesimulator/React-Fabric/React_Fabric.framework/Headers/react/renderer/core/PropsMacros.h:11:10)

   9 | 
  10 | #include <react/renderer/core/RawPropsPrimitives.h>
> 11 | #include <react/utils/fnv1a.h>
     |          ^ 'react/utils/fnv1a.h' file not found
  12 | #include <functional>
  13 | 
  14 | // We need to use clang pragmas inside of a macro below,

› Compiling react-native-external-display Pods/RNExternalDisplay » RNExternalDisplayEvent.mm
› Compiling react-native-external-display Pods/RNExternalDisplay » RNExternalDisplay.mm
jhen0409 commented 2 months ago

Should be fixed in v0.6.6.