0.52.0-rc.0: Yoga Value Conversion Issue preventing build
See original GitHub issueIs this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Steps to Reproduce
(Write your steps here:)
- Try to build app in xCode
- Receive Error
Implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const uint32_t' (aka 'const unsigned int')
line 208 in YGNodePrint.cppconst uint32_t childCount = node->children.size();
Not sure if this is related but Line 201 and 293 of Yoga.cpp
are also throwing logic errors of Null pointer argument in call to memory copy function
Expected Behavior
I expected my app to work. It had hung up at the splash screen with no errors except the yoga logic errors and I assumed the newer version would resolve them.
Actual Behavior
The app is unable to build due to the yoga issue and xCodes says there are two other logic errors in Yoga.
Reproducible Demo
I would imagine this would just show up in any new project; however, any suggested steps to resolve it would be appreciated.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:82
- Comments:76 (28 by maintainers)
Top Results From Across the Web
Value Conversion Issue error on app build - ios - Stack Overflow
I am trying to test my app in Xcode but every time I try to build it I get several Value Conversion Issues....
Read more >unable to resolve your shell environment in a reasonable time
Actual Behavior. The app is unable to build due to the yoga issue and xCodes says there are two other logic errors in...
Read more >react-native-codegen | Yarn - Package Manager
Values in old renderer (2f58e52006 by @javache); Revert "Fix TextInput dropping text when used as uncontrolled component with defaultValue " to fix ...
Read more >Untitled
George johnstone stoney wikipedia, Zuzana tinova, Speed stick advert, Pili airport location, Healing broken heart quotes, Build outdoor natural gas fire pit ...
Read more >pinentry bug fix and enhancement update - Oracle Linux Yum Server
Fix trailing whitespace - Add some patches to fix issues with ignoring DP MST ... executable - Resolves: #1277849 [2.1.11-36] - lib: prevent...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In my case, I also need to disable
GCC_WARN_64_TO_32_BIT_CONVERSION
for yoga and now my project compiles and runs perfectly.The full workaround for this issue if you are using cocoapods:
Version 0.52.0 was released with this bug still present. I bet there’s going to be an influx of people having this issue now. We really should have resolved this issue before releasing 0.52.0 😬.