-
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
When upgrading to 0.64-rc3, error: Cycle in dependencies between targets 'FBReactNativeSpec' #31034
Comments
Make sure to update all your dependencies that rely on |
Do you need help upgrading to a newer React Native version? Visit the Upgrade Support repository or use the upgrade helper to see the changes that need to be made to upgrade your app. |
I am pretty confident this is not an upgrade issue. Every single time I run |
I seem to be running into the same issue.
|
don't know if related, but I had similar problems and workaround works. but my issue was related to thing that I started ios build with yarn. it's related somehow to the fact that this Generate Specs is npm script and won't execute correctly if you run with yarn. after I tried just |
This is not resolved. Still happens on 0.64.x |
Same problem here. |
We've fixed this by moving the build phase that react native adds before the headers phase (It is added after by default) |
Is there a release ? |
Same problem goes for me, what is the solution ?
How did you do that ? |
Click on the Pods project on the left sidebar |
Is there a permanent patch for this? Because the fix works the problem is that we have to re-do it every time we run |
We should probably ask FB to re-open this issue, since it seems clear that it is affecting multiple people and is not resolved in the release version. @PeteTheHeat @janicduplessis Would you be willing to re-open this issue since this appears to be affecting a number of folks? (apologies in advance if I have at-mentioned the wrong people -- your names came up related to the |
@JB-CHAUVIN when you select pods on left sidebar, select `FBReactNativeSpec ` and then you will see this |
Great thanks for the replies, I can confirm that @tushar-singhal @paulxuca solution is working. And I can confirm that we need a permanent fix for this problem ! |
Workaround works but doing it each time we use |
Here is a proposed solution from @gmapnl in the software-mansion/react-native-screens#842 (comment)
|
@esilverberg recommended fix works perfectly well. No need to for any more manual steps. But still the underlying issue must be fixed in RN! |
The fix is not working for us in github actions... Not sure why. Does anyone know if that's already fixed in any of the nightly builds? |
Any updates on this? Just ran into this issue on |
If you have the issue with
It's not a react native issue per se. If you have a cycle issue that is mentioning another lib, you should update the lib or open an issue for the lib (and/or patch the lib by replacing in dependency React to React-Core like in the PR above (use https://www.npmjs.com/package/patch-package if needed). If you have the cycle issue without any explicit deps except |
If anyone finds that this fix doesn't work, deleting the [CP-User] Generate spec completely worked for me. App complies/runs as expected. |
Sorry sir but could you be more specific . I am new to IOS everything works fine on Android but when setup to IOS it is not working . I have the script phase error . |
This helped me
|
Description
When upgrading to 0.64-rc3, I was stuck for many hours today on this compliation error:
Cycle in dependencies between targets 'BVLinearGradient' and 'FBReactNativeSpec'.
The initial target is irrelevant; if I removed
BVLinearGradient
it would still happen for many different native libraries andFBReactNativeSpec
.React Native version:
0.64-rc3 on iOS
Steps To Reproduce
Repro was consistent in my project. Maybe has something to do with the fact that I use
use_frameworks!
, and in the latest sample Podfile React Native does not include this directive.Workaround
I was able to workaround this issue (and thus want to document it here for others who may get stuck) by:
Navigating to the
FBReactNativeSpec
target in the Pods project and deleting[CP-User] Generate Specs
step.I then navigated in the terminal to:
<project>/node_modules/react-native/scripts
And I manually ran from the terminal:
./generate-specs.sh
The text was updated successfully, but these errors were encountered: