0

I'm trying to build my ReactNative application for IOS using Bitrise and Xcode build pipelines. Is there any way to skip this issue on CI/CD pipelines? I'm getting this on Xcode and Bitrise both pipelines.

/Users/[REDACTED]/git/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp:2285:9: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]

Bitrise Issue Image

Xcode Issue Image

Xcode Archive & Export for iOS

  • That's an error during compilation that is causing the build to fail. It looks like you are using the bitwise OR operator (`|`) when perhaps you really wanted to use the logical OR operator (`||`). – ncke Apr 01 '23 at 09:07
  • Have you managed to solve your issue, I am facing the same error after upgrading to iOS 13.3 it gives me build failed /react-native/ReactCommon/yoga/yoga/Yoga.cpp:2285:9 Use of bitwise '|' with boolean operands – Ya Basha Apr 03 '23 at 07:46
  • I have changed the Bitrise "Stack & Machine" on the workflow editor into **Xcode 14.2.x, on macOS 13.2 (Ventura)** now it builds successfully on **Xcode 14.2.x** stack machine. But it's still the same error on Xcode 14.3.x – sandeepa dilshan Apr 11 '23 at 08:52

2 Answers2

1

I had this issue a few weeks ago; all of a sudden, my TestFlight builds stopped working. It turns out I had set my builds to use the latest Xcode version in this case 14.3RC, I changed back to 14.2 (14C18)14.2 (14C18) and my builds started working again

Alfa
  • 95
  • 6
0

This is an issue in Yoga v1.18, fixed in v1.19. See Here. You can either patch ReactCommon to fix the bug or update react-native to latest and see if that fixes it.

Tristan O'Keefe
  • 371
  • 2
  • 4
  • 14