19. An error shows on my app – Cycle dependencies between targets
This is a common error among React Native developers when having to deal with native code in iOS. The problem is related to changes in the dependencies tree that ended up rearranging which library depends on another. Therefore, the easiest solution is to reset the dependencies tree in our iOS project, ensuring that we end up with a clean dependency chain.
To achieve this, we can clean our builds
folder by pressing Command + Shift + K on Xcode and then rebuilding the app, by pressing the play button on Xcode or running yarn ios
on the command line while being in the project
folder.