--
For an easy upgrade experience of this file, do the following.
After all the other files have been upgraded, run yarn install
and
This will cause all the Pods to be connected. After that, open the workspace file in the ios
directory, called something like MyApp.xcworkspace
This workspace contains your original project, as well as the Pods
project. Expand your project and find the Libraries
directory.
Inside that, there are a few libraries related to React Native, and possibly other native modules from other libraries you might have connected.
You can go ahead and remove the React Native related libraries from there, by selecting them and hitting the delete button. In the popup you get, you can select Remove references
. If you select to Move it to Trash
, you might need to run yarn install
again.
These libraries are not needed there anymore, since now they are connected using CocoaPods. You can do the same for other libraries that might exist in that directory, if they support CocoaPods. If they don't, keep them there for now.
After all this, your diff of that file should look roughly the same as the one right here. Don't worry too much if it doesn't match exactly, as your project might have more or fewer targets.
Try to see if the rough outline is the same, and of course make sure your project can build and run.