-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
Xcode build fails when importing React after fresh integration #18205
Comments
I have an almost identical setup (Node: 9.5.0 and macOS 10.12.6) and a shell script that patches the podspecs. Rolling back to react-native 0.53.3 works as expected. |
@carrchr It is cool if it still work in 0.53.3 (I didn't took the time to re-test it ^^) but as I said in my issue, It is always better to be able to have the latest version of a framework with its latest features :) |
I'm seeing this issue too. So projects that use Swift can't compile with React Native 0.54+ ? It's 😢. |
@studyro You could follow this fix: facebook/yoga#711 (comment) |
@inDream Thanks, didn't be aware of post-install hacks. Running good now. |
Same issue. in Swift |
Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest release, v0.55? Thank you for your contributions. |
Followed the Integrate with Existing Apps guide.
After dealing with issues #17764 & #16039, the project finally compiled with no errors. Then, simply
import React
in a swift source file and building results in the following error.Environment
Environment:
OS: macOS High Sierra 10.13.2
Node: 9.7.1
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: Not Found
Packages: (wanted => installed)
react: ^16.3.0-alpha.1 => 16.3.0-alpha.1
react-native: ^0.54.0 => 0.54.0
Expected Behavior
No build errors when importing React
Actual Behavior
Build error on importing React
Steps to Reproduce
yarn add react-native
spec.public_header_files = 'yoga/Yoga.h', 'yoga/YGEnums.h', 'yoga/YGMacros.h'
pod install
<React/fishhook.h>
import React
The text was updated successfully, but these errors were encountered: