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

Declaration of 'YGValue' must be imported from module 'yoga.yoga.YGNode' before it is required #33815

Closed
destinyxxl opened this issue May 12, 2022 · 6 comments
Labels
Impact: Errors During Build Needs: Task This issue has been triaged but it does not have an associated task Platform: iOS iOS applications. Priority: Low Stale There has been a lack of activity on this issue and it may be closed soon. Tech: React Native Core Issue related to the Core of React Native Type: Old Architecture For issues related to the old architecture

Comments

@destinyxxl
Copy link

destinyxxl commented May 12, 2022

Description

i run a react-navive project, npm install and pod install succeed,when i run the project igot the error

Version

0.67.4

Output of npx react-native info

System:
OS: macOS 10.15.7
CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Memory: 652.55 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 18.0.0 - /usr/local/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 8.6.0 - /usr/local/bin/npm
Watchman: 2022.03.21.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/fengxiaolin/.rvm/rubies/ruby-2.7.4/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.4 => 0.67.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

built framework

Snack, code example, screenshot, or link to a repository

截屏2022-05-12 下午5 42 28

@destinyxxl
Copy link
Author

destinyxxl commented May 12, 2022

i have noticed the issue but my cocoapods version is latest(1.11.3), i tried downgrade cocoapods version to 1.9.1,but i got the error “React need at least 1.10.1”

@cipolleschi cipolleschi added Platform: iOS iOS applications. Impact: Errors During Build Priority: Low Type: Old Architecture For issues related to the old architecture Tech: React Native Core Issue related to the Core of React Native Needs: Task This issue has been triaged but it does not have an associated task and removed Needs: Triage 🔍 labels May 17, 2022
@JB-CHAUVIN
Copy link

I have a similar issue on RC 0.69, don't know if it is related ?
```Use of undeclared identifier 'YGValue'``

iScreen Shoter - 2022-06-07 16:39:46 538
`

@mfik
Copy link

mfik commented Jun 23, 2022

As mentioned here #33648 , temporary solution is to add a line in the install / build proccess

rm -rf node_modules ios/Pods
yarn
sed -i -e "s/spec.module_name = 'yoga'/spec.module_name = 'Yoga'/g" node_modules/react-native/ReactCommon/yoga/Yoga.podspec
npx pod-install
expo run:ios

@ph4r05
Copy link
Contributor

ph4r05 commented Jun 23, 2022

I figured that when Obj-C++ is used for given files, error is fixed #33976 (comment)

facebook-github-bot pushed a commit that referenced this issue Jun 29, 2022
Summary:
Fixes iOS build for React-RCTText with RN 0.69.0, fixes #33976

PR contains changes from #33976 (comment)

PoC repo: https://github.com/ph4r05/poc-rn-34064

Related issues:
- expo/expo#16283
- #33815
- #33976

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

[iOS] [Fixed] - Fix build for React-RCTText

Pull Request resolved: #34064

Reviewed By: cortinico

Differential Revision: D37420163

Pulled By: cipolleschi

fbshipit-source-id: 68a831bce9f449348d13e040a1ba12726a66667d
fortmarek pushed a commit that referenced this issue Jun 29, 2022
Summary:
Fixes iOS build for React-RCTText with RN 0.69.0, fixes #33976

PR contains changes from #33976 (comment)

PoC repo: https://github.com/ph4r05/poc-rn-34064

Related issues:
- expo/expo#16283
- #33815
- #33976

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

[iOS] [Fixed] - Fix build for React-RCTText

Pull Request resolved: #34064

Reviewed By: cortinico

Differential Revision: D37420163

Pulled By: cipolleschi

fbshipit-source-id: 68a831bce9f449348d13e040a1ba12726a66667d
@github-actions
Copy link

github-actions bot commented Feb 7, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Feb 7, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@facebook facebook locked as resolved and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Impact: Errors During Build Needs: Task This issue has been triaged but it does not have an associated task Platform: iOS iOS applications. Priority: Low Stale There has been a lack of activity on this issue and it may be closed soon. Tech: React Native Core Issue related to the Core of React Native Type: Old Architecture For issues related to the old architecture
Projects
None yet
Development

No branches or pull requests

5 participants