When upgrading to 0.64-rc3, error: Cycle in dependencies between targets 'FBReactNativeSpec'
See original GitHub issueDescription
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 and FBReactNativeSpec
.
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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:25 (2 by maintainers)
Top GitHub Comments
Here is a proposed solution from @gmapnl in the
react-native-screens
project:https://github.com/software-mansion/react-native-screens/issues/842#issuecomment-812543933
This is not resolved. Still happens on 0.64.x