Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error - use of bitwise '|' with boolean operands #1224

Closed
1 task done
gabrielyotoo opened this issue Feb 7, 2023 · 9 comments
Closed
1 task done

Build error - use of bitwise '|' with boolean operands #1224

gabrielyotoo opened this issue Feb 7, 2023 · 9 comments

Comments

@gabrielyotoo
Copy link

gabrielyotoo commented Feb 7, 2023

Report

Issues and Steps to Reproduce

Try to build the app
image

Environment

expo: 44.0.6
react-native: 0.68.5

Toolchain: Swift 5.7 2022-09-12

Expected Behavior

Build without error

Actual Behavior

Build failed with error - use of bitwise '|' with boolean operands

Log

/<my-project>/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp:2232:9: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
        node->getLayout().hadOverflow() |
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Please contact me for any questions.

Thank you very much.

@NickGerleman
Copy link
Contributor

NickGerleman commented Feb 8, 2023

Looks like this was fixed in RN 0.69+ with facebook/react-native@52d8a79 (f174de7).

@cortinico @cipolleschi would know better but my guess is you should be using an older version of XCode for an RN version at that age.

@LonelyCpp
Copy link

I'm getting this error on xcode 14 on react native v0.66.5. Is there no other workaround other than upgrading react native?

@cipolleschi
Copy link
Contributor

Hi @LonelyCpp, unfortunately, we are not supporting React Native 0.66 anymore. Our suggestion is to update to the latest version.

@kyrieLiu3
Copy link

What's your Xcode version?

@LonelyCpp
Copy link

Xcode 14.3.x, on macOS 13.2 (Ventura) | M1 Medium

@kyrieLiu3
Copy link

Xcode 14.3.x, on macOS 13.2 (Ventura) | M1 Medium

@LonelyCpp This morning the Xcode updated itself when opened it, now it's Version 14.3 (14E222b). I've got this error without any modification from last week. I fixed the corresponding error line but other errors occur in other third-party packages, so I doubt this might be caused by the Xcode update.

@YDisa
Copy link

YDisa commented Apr 12, 2023

I am on the same issue.

After the xcode update,
My client's old app doesn't build
(Builded before update)


xcode : Version 14.3 (14E222b)
react-native : 0.66.2

@Platycodon
Copy link

Platycodon commented Apr 12, 2023

Same issue on Xcode 14.3, RN 0.67.5.
But i cannot update RN to 0.69+.

@facebook facebook locked as resolved and limited conversation to collaborators Apr 12, 2023
@NickGerleman
Copy link
Contributor

NickGerleman commented Apr 12, 2023

RN versions before 0.69 are no longer being supported. If there is a need to use an old version of RN/Yoga, an older version of XCode is required.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants