react-native-community / upgrade-support

A central community-backed place to request and give help when upgrading your app.
MIT License
251 stars 2 forks source link

YGNode missing members issue with 72.5, 72.4 upgrade on mac #249

Open puttagunta opened 9 months ago

puttagunta commented 9 months ago

Environment

ystem: OS: macOS 14.0 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 27.05 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 16.14.2 path: ~/.nvm/versions/node/v16.14.2/bin/node Yarn: version: 1.22.19 path: ~/.nvm/versions/node/v12.22.12/bin/yarn npm: version: 8.5.0 path: ~/.nvm/versions/node/v16.14.2/bin/npm Watchman: version: 2023.09.25.00 path: /usr/local/bin/watchman Managers: CocoaPods: version: 1.13.0 path: /Users/sree/.rvm/rubies/ruby-2.7.4/bin/pod SDKs: iOS SDK: Platforms:

Things I’ve done to figure out my issue

Upgrading version

72.5

Description

I'm trying to upgrade to 72.5 from 67.4. Have used "react-native upgrade" to upgrade the app. Was able to install packages and pods fine. When I ran "yarn ios", the build is failing with

CompileC /Users/sree/Library/Developer/Xcode/DerivedData/mymicrosoft-cbolrmmnrcgabpfpuznqcuaoiuxs/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Yoga.build/Objects-normal/x86_64/Yoga.o /Users/sree/work/MEE-PRO-EEP-UX-Client/mobile/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Yoga' from project 'Pods')

(1 failure)

and

…./node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp:184:16: error: no member named 'didUseLegacyFlag' in 'YGNode' return node->didUseLegacyFlag();


…./node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp:977:28: error: no member named 'doesLegacyStretchFlagAffectsLayout' in 'YGLayout'
  return node->getLayout().doesLegacyStretchFlagAffectsLayout();
         ~~~~~~~~~~~~~~~~~ ^
…/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp:2968:17: error: no member named 'setLayoutDidUseLegacyFlag' in 'YGNode'
          node->setLayoutDidUseLegacyFlag(true);
          ~~~~  ^
…/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp:4214:13: error: no member named 'didUseLegacyFlag' in 'YGNode'
      node->didUseLegacyFlag()) {
      ~~~~  ^
…./node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp:4252:35: error: no member named 'isLayoutTreeEqualToNode' in 'YGNode'
          !nodeWithoutLegacyFlag->isLayoutTreeEqualToNode(*node);
           ~~~~~~~~~~~~~~~~~~~~~  ^
…../node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp:4253:13: error: no member named 'setLayoutDoesLegacyFlagAffectsLayout' in 'YGNode'
      node->setLayoutDoesLegacyFlagAffectsLayout(neededLegacyStretchBehaviour);
      ~~~~  ^
6 errors generated.

## Reproducible demo

yarn ios