Just updated my XCode to Version 14.3 today and build is failing with below error in Yoga file
Use of bitwise '|' with boolean operands
Looks like we have some issues with iOS yoga package. I don’t want to rollback to lower version again. If someone can help to get over it, that would be nice.
I tried removing cached data and derived data & cleaning build. Tried removing pods and node_modules as well. But nothing has helped.
2
Answers
I resolved it by putting 2 Vertical bars || instead of one | in the code where it is failing.
Then cleared the build and it is working fine now on XCode 14.3. I Hope this helps someone.
General
This issue’s been fixed in Yoga v1.19.0
Check out this commit dated Apr 12, 2022, and release v1.19.0 dated May 21, 2021.
How to fix
patch-package
for development easepostinstall
script topackage.json
file withpatch-package
callreact-native/ReactCommon/yoga/yoga/Yoga.cpp
to fix the issue with incorrect operator usednpx patch-package react-native
to generate.patch
filepatches/
directory to git