react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

iOS: 'yoga/style/Style.h' Not Found with New Architecture Enabled

Open Rodrigo816 opened this issue 2 years ago • 3 comments

What react-native version are you using? 0.73.2

What react-native-pdf version are you using? 6.7.4

What platform does your issue occur on? iOS

Describe your issue as precisely as possible :

  1. Enable RCT_NEW_ARCH_ENABLED=1 to use the new React Native architecture (fabric).
  2. Compile the project in XCode.
  3. The compilation fails with the error: 'yoga/style/Style.h' file not found.

image (14)

Rodrigo816 avatar Jan 26 '24 11:01 Rodrigo816

same error

Gu1K avatar Jan 31 '24 16:01 Gu1K

Same ❌ (ios/Pods/Headers/Public/React-Fabric/react/renderer/components/view/YogaStylableProps.h:10:10)

8 | #pragma once 9 |

10 | #include <yoga/style/Style.h> | ^ 'yoga/style/Style.h' file not found 11 | 12 | #include <react/renderer/core/Props.h> 13 | #include <react/renderer/core/PropsParserContext.h>

[RUN_FASTLANE] › Compiling react-native-pdf Pods/react-native-pdf » RNPDFPdfView.mm [RUN_FASTLANE] ❌ (ios/Pods/Headers/Public/React-Fabric/react/renderer/components/view/YogaStylableProps.h:10:10)

8 | #pragma once 9 |

10 | #include <yoga/style/Style.h> | ^ 'yoga/style/Style.h' file not found 11 | 12 | #include <react/renderer/core/Props.h> 13 | #include <react/renderer/core/PropsParserContext.h>

psquizzle avatar Mar 27 '24 04:03 psquizzle

This is fixed in https://github.com/wonday/react-native-pdf/pull/803 or alternatively add "${PODS_ROOT}/Headers/Private/Yoga" in the podspec file.

psquizzle avatar Mar 27 '24 05:03 psquizzle