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

Creating a new React-Native project does not create a buildable project - FlipperRSocket build errors #31120

Closed
azav opened this issue Mar 9, 2021 · 5 comments
Labels
Resolution: Locked This issue was locked by the bot. Tool: Flipper

Comments

@azav
Copy link

azav commented Mar 9, 2021

Multiple FlipperRSocket build errors prevent a new React-Native project from building on iOS.

Description

Text files are added to build phases along with other issues in FlipperRSocket.

https://reactnative.dev/docs/upgrading.html

React Native version:

4.14.0

Steps To Reproduce

  1. After installing React-Native as per here: https://reactnative.dev/docs/environment-setup using React Native CLI Quickstart.
  2. In the Terminal, create a new project with npx react-native init MyApp
  3. Compile it with npx react-native run-ios

Expected Results

A successful build.

Results

Multiple build errors and missing files in the build with the Flipper pod.
Open MyApp.xcworkspace and in the Pods project, locate the Build Phases for the Flipper-RSocket.a Target. Note that within the Compiled Sources, Readme.md is added twice along with other files that should not be compiled.
Even after removing these files, multiple Flipper build errors are present.

@chrisglein chrisglein added Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. and removed Needs: Triage 🔍 labels Mar 9, 2021
@chrisglein
Copy link

Can you share your full environment info as well as the build errors you see?

@github-actions
Copy link

github-actions bot commented Mar 9, 2021

⚠️ Missing Environment Information
ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.

@Schr3da
Copy link

Schr3da commented Mar 9, 2021

Hey,
you can try to modify the Podfile of your ios Project by adding a fixed version for Flipper. Please see the snippet below.

use_flipper!({ 'Flipper' => '0.74.0' })

Next ensure to delete the Podfile.lock and Pods folder.
Afterwards run

pod install

to install all dependencies and try to run the project again.

regards
Schr3da

@azav
Copy link
Author

azav commented Mar 9, 2021

OK. I had to replace a line that already existed that started with use_flipper!( with your version.

The iOS app successfully builds and launches from Xcode 12.4.

Thank you!

It might be a good idea to make sure that the default project setup has the proper version of use_flipper in the pod file so others don't run in to this too.

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Mar 9, 2021
@chrisglein chrisglein added Tool: Flipper and removed Needs: Attention Issues where the author has responded to feedback. Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. labels Apr 20, 2021
@chrisglein
Copy link

It might be a good idea to make sure that the default project setup has the proper version of use_flipper in the pod file so others don't run in to this too.

I don't think the long term goal would to be on a fixed version of flipper. I think this is just a temporary incompatibility? Let me know if I'm reading it wrong. Sounds like you're unblocked (yay!), so closing.

@facebook facebook locked as resolved and limited conversation to collaborators Apr 20, 2022
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Apr 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot. Tool: Flipper
Projects
None yet
Development

No branches or pull requests

4 participants