-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Yoga.cpp issue with Xcode 14.3 (14E222b) #36758
Comments
|
double the '|', it works |
Me too. Thanks |
duplicate #36739 |
I see, thanks for clarifying. But 0.69 is the lowest version supported, so is there a specific reason we should keep this one one if it's only for versions lower than 0.69? |
I have no objection to close this issue, but there should be a link or explanation for the correct fix provided. The use of "duplicate" made me think that issue was the correct fix, but I later found out it was not. |
As noted [here](facebook/react-native#36758) there is a problem with the Yoga package in RN building with Xcode 14.3. This is a temporary work around to peg the build to 14.2 until this issue can be resolved more thoroughly. Ref. [macOS runners](https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md)
+1 double the | can solve the issue but what about he permanent solution? |
this is the official fix applied on version>=0.69, see my comment and link above |
I'm also getting this issue on xcode cloud CI using react-native version 0.68.4. How can I fix the issue there? Thanks |
We have a pipeline that reinstalls all of the dependencies when it builds the app. Does anyone have a post-install script that can fix the broken line of code so our pipeline can build successfully? We have a large, complex app using react-native 67.5, so "just update to 0.69" is not a quick change. |
|
Does that work even if you don't build React Native from the source? |
I was in react-native 0.66.4. Xcode version 14.3. This worked for me. Thankyou. |
fix error i am add || [Logical OR] operator in hadOverflow() fix this error |
Not sure removing that line is such a good move... Just use patch-package and apply the fix |
i am using react-native 0.64, i fix it by downgrading my xcode to version 14.2, facebook/yoga#1224 (comment) |
When I run this code, it unfortunately replaces |
worked for me |
) * bump the major version for all packages to 3.0.0 (assurance to 5.0.0) * align up all package versions and fix Lerna bootstrap issue * update Xcode to 14.1.0 * show verbose logs when building the ios app * Fix Yoga issue (facebook/react-native#36758) * try to fix the Xcode issue
* bump the major version for all packages to adopt the iOS SDK 4.0.0 (#271) * bump the major version for all packages to 3.0.0 (assurance to 5.0.0) * align up all package versions and fix Lerna bootstrap issue * update Xcode to 14.1.0 * show verbose logs when building the ios app * Fix Yoga issue (facebook/react-native#36758) * try to fix the Xcode issue * update docs and disable ios build step on CI (#273)
* bump the major version for all packages to adopt the iOS SDK 4.0.0 (#271) * bump the major version for all packages to 3.0.0 (assurance to 5.0.0) * align up all package versions and fix Lerna bootstrap issue * update Xcode to 14.1.0 * show verbose logs when building the ios app * Fix Yoga issue (facebook/react-native#36758) * try to fix the Xcode issue * update docs and disable ios build step on CI (#273) * fix install issue (#275)
Another day another Yoga issue. |
Try this instead:
|
Are you sure that you have the |
My error message was
and I tried this command.
this worked for me . |
You can try this instead: |
it works for me,add
|
after adding this line i get the following build commands failed: CompileC /Users/myname/projects/projectname/ios/DerivedData/aido/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/arm64/json.o /Users/myname/projects/projectname/ios/Pods/RCT-Folly/folly/json.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods') (1 failure) |
By the way, for our version of RN/Yoga, this sed command will also find replace 2 other occurrences which should not be changed and may cause subtle build issues. We recommend using sed with a line number restriction so that it only changes the one line causing the issue, here is the completed command that we are using in our pipeline to make yoga work with node 16.
For us the line number was 2289 with react native 0.64.0, for other versions of RN/yoga it may be a different line number so make sure you check your xcode error and only replace the specific line number you have the issue on. |
i
i even manually changed the line didnt work work me instead i get |
install patch-package run patch-package to create a .patch file after that commit and push your changes |
use patch-packgae or modify the source code manually is too heavy, I provide another elegant way. in ios/Podfile add find_add_replace method (I copy this method from the community to solve other XCode related issue before):
in pod_install section use find_and_replace to replace the related lines:
execute |
unfortunately, when run in CI this is not possible. I tried to run through Xcode Cloud, it failed. |
How is it "too heavy", it's just a few steps and a few min at most? Shameless plug: |
@andreas-bergstrom what I said "too heavy" is that use patch-package to apply the changes will generate extra but not "important and necessary" patch files. |
Description
An issue occurs when we try to build project : "Yoga.cpp : Use of bitwise '|' with boolean operands".
When we double the '|', it works...
React Native Version
0.66.4
Output of
npx react-native info
System:
OS: macOS 13.3
CPU: (8) arm64 Apple M1 Pro
Memory: 90.30 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 19.7.0 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.5.0 - /opt/homebrew/bin/npm
Watchman: 2023.02.27.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.0 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9619390
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /opt/homebrew/opt/openjdk@11/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.66.4 => 0.66.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Update Xcode with last version 14.3 (14E222b) and try to build project.
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: